-
Notifications
You must be signed in to change notification settings - Fork 196
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
refactor(opacitycheckerboard): address concerns about inclusion order #2382
refactor(opacitycheckerboard): address concerns about inclusion order #2382
Conversation
🚀 Deployed on https://pr-2382--spectrum-css.netlify.app |
File metricsSummaryTotal size: 3.91 MB*
Detailsopacitycheckerboard
* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
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.
Seeing a couple wonkies in the components that use opacity checkerboard, thinking it's related to the custom styles at least for the storybook ones:
I didn't check them all in Storybook since it seemed possible that the issue across components was related.
*** Edit: we chatted and this is a small change in the swatch.yml that will be updated in a separate PR.
ah, yes you're right was an issue with customStyles, the 100% for inline and block size needed to be applied to just the stories for displayed opacity checkerboard not within a component. I have pushed up a fix for this. |
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.
Code and example sites look good to me based on the validation steps. Curious to hear what thoughts Westbrook has.
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.
These changes look good to me. I like that this is organized into "Utilities" now in Storybook.
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.
Let's revert the category update for now but otherwise this is looking great.
@@ -5,7 +5,7 @@ import { styleMap } from "lit/directives/style-map.js"; | |||
import { Template } from "./template"; | |||
|
|||
export default { | |||
title: "Components/Opacity checkerboard", | |||
title: "Utilities/Opacity checkerboard", |
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.
This is a good clarification but let's hold off creating new headings yet. I'd like to go through our whole list of components and determine what others can fall under this same category.
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.
reverted for now!
I agree that it would be useful to look at all components and see what categories make sense.
examples: | ||
- id: opacity-checkerboard | ||
name: Opacity Checkerboard | ||
name: Opacity checkerboard |
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.
Thanks for updating this to align with the style guide!
…ook for opacitycheckerboard
c934e19
to
43bbf04
Compare
Description
Addresses: #2139
Changes:
These changes as well as the SWC documentation improvements merged in with SWC PR 3651 addresses concerns around inclusion order when using the opacity checkerboard.
Alternative approach to now closed PR #2350
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
tested by @mdt2
On the docs site:
In storybook:
Regression testing
Validate:
Screenshots
To-do list