-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add exam selection component #7
Conversation
3e20d3d
to
6cf52e0
Compare
d7d864b
to
91101a6
Compare
da5a6fd
to
8a3dc5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's where I've left off! Added some comments.
border: 1px solid $search-border-color !important; | ||
} | ||
|
||
.pgn__searchfield.has-focus:not(.pgn__searchfield--external)::after { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
override some of the default styling to deal with putting searchfield inside of a select dropdown. The default focus border looks odd here and causes sizing issues so I've removed it and placed a simple border on the input element instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions about messages/internationalization
const { formatMessage } = useIntl(); | ||
const [searchText, setSearchText] = useState(''); | ||
|
||
const placeholderMessage = formatMessage({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could these messages be moved to a message specific file? I typically haven't seen them defined within the components.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also are we considering internationalization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah you're right, this should be done using a separate file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok this should be fixed. Turns out I had already set that file up I just didn't make use of it.
935cece
to
52d31fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
https://2u-internal.atlassian.net/browse/MST-1942