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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃枍 Bento: Move Selector to JSS #33018
Conversation
const optionProps = { | ||
...rest, | ||
className: objstr({ | ||
[classes.option]: true, | ||
[classes.selected]: isSelected && !selectorMultiple, |
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.
I kind of prefer this way, but just calling out that "selected" styles were only set when not disabled before. So just confirming this change is intended.
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.
Yes, thanks for calling this out explicitly. I'll add it to the PR description as well. Also preferred this way and intended to do this, hence why the relevant test cases were modified as well. This is more consistent with AMP layer this way.
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
In addition to moving CSS to JSS for the
Selector
component, this PR also:selected
anddisabled
state, thereby aligning closer to the AMP layerobj-str
forclassName
computationRelated to #28282