-
Notifications
You must be signed in to change notification settings - Fork 206
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
fix(picker): correctly process the CSS for the quiet hover effect #4167
Conversation
Lighthouse scores
What is this?Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on Transfer Size
Request Count
|
Tachometer resultsChromeaction-menu permalinktest-basic
picker permalinkbasic-test
split-button permalinkbasic-test
Firefoxaction-menu permalinktest-basic
picker permalinkbasic-test
split-button permalinkbasic-test
|
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.
Awesome! You're a Picker Pro now 😜
LGTM. Justing waiting for CI to go green again and I'll merge this in.
d9faaa6
to
c9a42ab
Compare
@Rocss I rebased this not expecting the VRTs to fail, can you help us update the cache here? |
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.
Merging, take two!
Description
Seems like the problem is that the CSS for the quiet variant of the
sp-picker
was not correctly processed:observe the
spectrum-Picker--quiet
class which should be translated to the HTML quiet attribute.I added some more processing rules in the
spectrum-config
which should take care of that. Let me know if there is a better config to use for this.Also, in the storybook, the
sp-label-field
should have the same size as thesp-picker
, or else it looks weird and thesp-picker
climbs over thesp-label-field
. I adjusted the stories to pass thesize
attribute to thesp-label-field
as well, if present.Related issue(s)
Motivation and context
Solves a CSS bug in the
Picker
component when using thequiet
variant and hovering over the component.How has this been tested?
Hover effect is no longer present on the
<sp-picker quiet..... />
sp-picker
no longer overlaps with thesp-label-field
In storybook, you can not change the size of the Picker from the Controls addon panel
size
attributesp-label-field
changes too when interacting with this dropdownScreenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.