feat(dropshadow): add dropshadow foundation#2674
Conversation
|
|
🚀 Deployed on https://pr-2674--spectrum-css.netlify.app |
File metricsSummaryTotal size: 4.24 MB* 🎉 No changes detected in any packages * Size determined by adding together the size of the main file for all packages in the library.* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
f3dd9ff to
9931a8e
Compare
295b6ac to
250d5b4
Compare
jawinn
left a comment
There was a problem hiding this comment.
Thanks for continuing this exploration of having drop shadows within commons, and setting up the foundations page. Along with using the new tokens.
I'm not sold on the idea of these being a placeholder class within commons, and think that we should just use the four tokens as needed within our CSS, similar to how things played out with down states. For a few reasons:
- It seems a little excessive to import into our components for a single property.
- It may be preferable to use
filter: drop-shadoworbox-shadow, depending on the situation. I thinkbox-shadowis preferable in most cases, but as you mentioned it may clash with an existingbox-shadowin some components. The filter has some downsides, such as showing the shadow around the contours of the alpha channel on a partly transparent image, which might not be wanted. - With commons there would be the extra generically named mod properties (e.g.
--mod-drop-shadow-emphasized-default-x), instead of just having the component specific mod names (if any).
Thoughts on this @pfulton and @castastrophe ?
If we don't use commons, we can still demonstrate the use of these shadow tokens here on the foundations page. Possibly with a code block under each shadow story showing the 4 tokens in a box-shadow property.
There was a problem hiding this comment.
The stories and MDX page look good!
I feel like it would be helpful for users to have a short description for each shadow type and what they're used for, if the design team could provide some language for that. Looking at the internal S2 docs for "Object styles", they had some more info but were called different things (?? -- "Container emphasized", "Elevated", and "Dragged").
6dbc850 to
ae7aedd
Compare
123deb2 to
6a22351
Compare
mdt2
left a comment
There was a problem hiding this comment.
Looking great! +1 to Josh's comment about including some additional details, maybe just a brief blurb about when these would each be used
These are good call-outs, and thanks for raising them. I think I'm in agreement with you, @jawinn: not having them in Commons, but definitely having the code examples with some guidance ("use @rise-erpelding do you think that's do-able in this PR? |
5836ca7 to
8147ad0
Compare
f14f4f5 to
57ba6d6
Compare
57ba6d6 to
b045a7f
Compare
Description
CSS-740
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
Regression testing
Validate:
Screenshots
To-do list