-
Notifications
You must be signed in to change notification settings - Fork 198
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(overlay,commons): deprecate overlay; migrate references to commons #2429
Conversation
6879a96
to
76ab549
Compare
76ab549
to
669b620
Compare
File metricsSummaryTotal size: 3.91 MB*
Detailsaccordion
actionbar
actionbutton
assetlist
badge
breadcrumb
button
calendar
card
checkbox
clearbutton
closebutton
colorarea
colorhandle
combobox
datepicker
dial
dialog
divider
dropindicator
dropzone
fieldlabel
helptext
illustratedmessage
infieldbutton
link
logicbutton
menu
modal
picker
popover
progressbar
radio
rating
search
sidenav
slider
splitview
statuslight
steplist
stepper
swatch
switch
table
tabs
tag
textfield
toast
tooltip
typography
underlay
* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
🚀 Deployed on https://pr-2429--spectrum-css.netlify.app |
1c282af
to
cf5da86
Compare
cf5da86
to
eb4dd62
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.
This looks good to me, I tested the code and all the components you listed in Storybook plus a few of them in the docs site.
One question since I'm a bit out of the loop on deprecation process, how are we planning to communicate deprecations like overlay?
Yes, good question. My plan was to mark the package deprecated in npm. Since it only contains placeholders and no usable CSS, that should be enough to let anyone who might be using it downstream to either migrate off or switch to @spectrum-css/commons. |
eb4dd62
to
60a008a
Compare
|
60a008a
to
d7e08ec
Compare
0c23d88
to
4c6fe0e
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.
This is really helpful in cleaning up Overlay and removing the duplicate code! Deprecating the component feels like the right way to go.
I think a step 2 for followup refactor work could be to do one of the following:
a. remove overlay entirely from commons and bring its necessary CSS directly to the components that need it. %spectrum-overlay
and %spectrum-overlay--open
are not providing a lot.
b. OR, at the least removing %spectrum-overlay--bottom--open
, %spectrum-overlay--top--open
, %spectrum-overlay--right--open
, %spectrum-overlay--left--open
, which as you've noted are either not used or only used once.
859ec89
to
6e0ebdd
Compare
- Move from yarn cache:clean to yarn nx reset for clarity and to prevent unexpected regressions when changes made to package.json - Additional comment blocks in production workflow - Add size change reporting - should add details to the build console if we want to see changes to main - Remove built asset download for publish site as it's duplicative & add the storybook fallback task to after the site build so it isn't overwritten by the site clean
…rides to inherit
6e0ebdd
to
ac87071
Compare
Description
@spectrum-css/overlay and @spectrum-css/commons contain the same overlay extends. This PR aims to deduplicate this work and unify extends under the commons package, deprecating the @spectrum-css/overlay package.
This also migrates to
postcss-extend
instead ofpostcss-inherit
. During the build rework, we ran into a lot of compatibility issues usingpostcss-inherit
with postcss 8 that were blocking our migration and update.@spectrum-css/commons
commons/overlay-coretokens.css
andcommons/basebutton-coretokens.css
tocommons/*.css
without the-coretokens.css
postfix because the non-coretokens assets are no longer used in the library.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.
Components this impacts:
updates to extend basebutton.css from commons
updates to extend overlay.css from commons
other related changes
Validation steps
Regression testing
Validate:
To-do list