Skip to content
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

Merged
merged 4 commits into from
Jan 17, 2024

Conversation

castastrophe
Copy link
Collaborator

@castastrophe castastrophe commented Jan 16, 2024

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 of postcss-inherit. During the build rework, we ran into a lot of compatibility issues using postcss-inherit with postcss 8 that were blocking our migration and update.

@spectrum-css/commons

  • Moves commons/overlay-coretokens.css and commons/basebutton-coretokens.css to commons/*.css without the -coretokens.css postfix because the non-coretokens assets are no longer used in the library.
  • The legacy code for components not yet on coretokens was removed.

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

  • actionbutton
  • button
  • closebutton
  • logicbutton
  • picker

updates to extend overlay.css from commons

  • modal
  • popover
  • quickaction
  • tooltip
  • underlay

other related changes

  • icon (just updates inherit to use extend)
  • dialog (removes import because file contains no overlay extends)

Validation steps

Regression testing

Validate:

  1. The documentation pages for at least two other components are still loading, including:
  • The pages render correctly, are accessible, and are responsive.
  1. If components have been modified, VRTs have been run on this branch:
  • VRTs have been run and looked at.
  • Any VRT changes have been accepted (by reviewer and/or PR author), or there are no changes.

To-do list

  • I have read the contribution guidelines.
  • I have updated relevant storybook stories and templates.
  • If my change impacts other components, I have tested to make sure they don't break.
  • ✨ This pull request is ready to merge. ✨

@castastrophe castastrophe force-pushed the feat-deprecate-overlay-migrate-commons branch from 6879a96 to 76ab549 Compare January 16, 2024 17:05
@castastrophe castastrophe added run_vrt For use on PRs looking to kick off VRT size-3 M ~18-30hrs; moderate effort or complexity, several work days needed. labels Jan 16, 2024
@castastrophe castastrophe force-pushed the feat-deprecate-overlay-migrate-commons branch from 76ab549 to 669b620 Compare January 16, 2024 17:10
Copy link
Contributor

github-actions bot commented Jan 16, 2024

File metrics

Summary

Total size: 3.91 MB*
Total change (Δ): ⬇ 6.49 KB (-0.16%)
Table reports on changes to a package's main file. Other changes can be found in the collapsed "Details" below.

Package Size Δ
accordion 18.45 KB ⬇ 0.01 KB
actionbar 6.36 KB ⬇ 0.01 KB
actionbutton 40.88 KB ⬆ 0.01 KB
assetlist 7.13 KB ⬇ 0.02 KB
badge 12.79 KB ⬇ < 0.01 KB
breadcrumb 16.42 KB ⬇ 0.01 KB
button 79.64 KB ⬆ 0.06 KB
calendar 20.62 KB ⬇ 0.09 KB
card 22.19 KB ⬇ 0.03 KB
checkbox 24.96 KB ⬇ 0.01 KB
clearbutton 7.41 KB ⬇ 0.01 KB
closebutton 16.14 KB ⬆ 0.03 KB
colorarea 3.44 KB ⬇ < 0.01 KB
colorhandle 4.97 KB ⬇ < 0.01 KB
combobox 25.76 KB ⬇ 0.10 KB
datepicker 14.74 KB ⬇ 0.01 KB
dial 11.55 KB ⬇ 0.03 KB
dialog 15.22 KB ⬇ 0.02 KB
divider 5.05 KB ⬇ 0.01 KB
dropindicator 3.54 KB ⬇ 0.01 KB
dropzone 9.60 KB ⬇ < 0.01 KB
fieldlabel 6.50 KB ⬇ < 0.01 KB
helptext 7.52 KB ⬇ 0.01 KB
illustratedmessage 5.90 KB ⬇ < 0.01 KB
infieldbutton 18.71 KB ⬇ < 0.01 KB
link 4.97 KB ⬇ 0.01 KB
logicbutton 9.35 KB ⬆ 0.06 KB
menu 39.14 KB ⬇ 0.04 KB
modal 5.23 KB ⬇ 0.10 KB
picker 30.90 KB ⬇ < 0.01 KB
popover 31.57 KB ⬇ 0.09 KB
progressbar 11.11 KB ⬇ 0.03 KB
radio 19.24 KB ⬇ 0.03 KB
rating 10.41 KB ⬇ < 0.01 KB
search 15.45 KB ⬇ < 0.01 KB
sidenav 14.76 KB ⬇ 0.02 KB
slider 32.06 KB ⬇ 0.04 KB
splitview 10.83 KB ⬇ < 0.01 KB
statuslight 11.49 KB ⬇ < 0.01 KB
steplist 10.08 KB ⬇ 0.01 KB
stepper 20.53 KB ⬇ 0.06 KB
swatch 11.30 KB ⬇ 0.02 KB
switch 24.16 KB ⬇ < 0.01 KB
table 46.50 KB ⬇ 0.03 KB
tabs 17.90 KB ⬇ < 0.01 KB
tag 35.64 KB ⬇ 0.01 KB
textfield 36.89 KB ⬇ 0.02 KB
toast 9.22 KB ⬇ < 0.01 KB
tooltip 30.16 KB ⬇ 0.77 KB
typography 40.80 KB ⬇ 0.60 KB
underlay 3.18 KB ⬇ 0.10 KB
Details

accordion

File Head Base Δ
index-base.css 18.45 KB 18.46 KB ⬇ 0.01 KB (-0.04%)
index-vars.css 18.45 KB 18.46 KB ⬇ 0.01 KB (-0.04%)
index.css 18.45 KB 18.46 KB ⬇ 0.01 KB (-0.04%)
mods.json 1.79 KB 1.79 KB -

actionbar

File Head Base Δ
index-base.css 6.36 KB 6.37 KB ⬇ 0.01 KB (-0.18%)
index-vars.css 6.36 KB 6.37 KB ⬇ 0.01 KB (-0.18%)
index.css 6.36 KB 6.37 KB ⬇ 0.01 KB (-0.18%)
mods.json 1.00 KB 1.00 KB -

actionbutton

File Head Base Δ
index-base.css 29.80 KB 29.79 KB ⬆ 0.01 KB (0.04%)
index-theme.css 11.65 KB 11.65 KB -
index-vars.css 40.88 KB 40.87 KB ⬆ 0.01 KB (0.03%)
index.css 40.88 KB 40.87 KB ⬆ 0.01 KB (0.03%)
mods.json 2.63 KB 2.63 KB -
themes/express.css 8.92 KB 8.92 KB -
themes/spectrum.css 9.20 KB 9.20 KB -

assetlist

File Head Base Δ
index-base.css 7.13 KB 7.14 KB ⬇ 0.02 KB (-0.27%)
index-vars.css 7.13 KB 7.14 KB ⬇ 0.02 KB (-0.27%)
index.css 7.13 KB 7.14 KB ⬇ 0.02 KB (-0.27%)
mods.json 0.90 KB 0.90 KB -

badge

File Head Base Δ
index-base.css 12.79 KB 12.79 KB ⬇ < 0.01 KB (-0.03%)
index-vars.css 12.79 KB 12.79 KB ⬇ < 0.01 KB (-0.03%)
index.css 12.79 KB 12.79 KB ⬇ < 0.01 KB (-0.03%)
mods.json 1.39 KB 1.39 KB -

breadcrumb

File Head Base Δ
index-base.css 16.42 KB 16.43 KB ⬇ 0.01 KB (-0.08%)
index-vars.css 16.42 KB 16.43 KB ⬇ 0.01 KB (-0.08%)
index.css 16.42 KB 16.43 KB ⬇ 0.01 KB (-0.08%)
mods.json 2.60 KB 2.60 KB -

button

File Head Base Δ
index-base.css 49.69 KB 49.63 KB ⬆ 0.06 KB (0.12%)
index-theme.css 30.53 KB 30.53 KB -
index-vars.css 79.64 KB 79.58 KB ⬆ 0.06 KB (0.07%)
index.css 79.64 KB 79.58 KB ⬆ 0.06 KB (0.07%)
mods.json 1.63 KB 1.63 KB -
themes/express.css 29.33 KB 29.33 KB -
themes/spectrum.css 29.71 KB 29.71 KB -

calendar

File Head Base Δ
index-base.css 20.62 KB 20.71 KB ⬇ 0.09 KB (-0.42%)
index-vars.css 20.62 KB 20.71 KB ⬇ 0.09 KB (-0.42%)
index.css 20.62 KB 20.71 KB ⬇ 0.09 KB (-0.42%)
mods.json 1.67 KB 1.67 KB -

card

File Head Base Δ
index-base.css 22.19 KB 22.23 KB ⬇ 0.03 KB (-0.15%)
index-vars.css 22.19 KB 22.23 KB ⬇ 0.03 KB (-0.15%)
index.css 22.19 KB 22.23 KB ⬇ 0.03 KB (-0.15%)
mods.json 2.14 KB 2.14 KB -

checkbox

File Head Base Δ
index-base.css 24.33 KB 24.34 KB ⬇ 0.01 KB (-0.02%)
index-theme.css 1.20 KB 1.20 KB -
index-vars.css 24.96 KB 24.96 KB ⬇ 0.01 KB (-0.02%)
index.css 24.96 KB 24.96 KB ⬇ 0.01 KB (-0.02%)
mods.json 1.62 KB 1.62 KB -
themes/express.css 0.92 KB 0.92 KB -
themes/spectrum.css 0.91 KB 0.91 KB -

clearbutton

File Head Base Δ
index-base.css 6.63 KB 6.63 KB ⬇ 0.01 KB (-0.07%)
index-theme.css 1.36 KB 1.36 KB -
index-vars.css 7.41 KB 7.42 KB ⬇ 0.01 KB (-0.07%)
index.css 7.41 KB 7.42 KB ⬇ 0.01 KB (-0.07%)
mods.json 0.58 KB 0.58 KB -
themes/express.css 1.00 KB 1.00 KB -
themes/spectrum.css 0.97 KB 0.97 KB -

closebutton

File Head Base Δ
index-base.css 15.49 KB 15.47 KB ⬆ 0.03 KB (0.16%)
index-theme.css 1.22 KB 1.22 KB -
index-vars.css 16.14 KB 16.11 KB ⬆ 0.03 KB (0.15%)
index.css 16.14 KB 16.11 KB ⬆ 0.03 KB (0.15%)
mods.json 1.29 KB 1.29 KB -
themes/express.css 0.93 KB 0.93 KB -
themes/spectrum.css 0.92 KB 0.92 KB -

colorarea

File Head Base Δ
index-base.css 3.44 KB 3.44 KB ⬇ < 0.01 KB (-0.06%)
index-vars.css 3.44 KB 3.44 KB ⬇ < 0.01 KB (-0.06%)
index.css 3.44 KB 3.44 KB ⬇ < 0.01 KB (-0.06%)
mods.json 0.30 KB 0.30 KB -

colorhandle

File Head Base Δ
index-base.css 4.97 KB 4.97 KB ⬇ < 0.01 KB (-0.04%)
index-vars.css 4.97 KB 4.97 KB ⬇ < 0.01 KB (-0.04%)
index.css 4.97 KB 4.97 KB ⬇ < 0.01 KB (-0.04%)
mods.json 0.60 KB 0.60 KB -

combobox

File Head Base Δ
index-base.css 24.98 KB 25.08 KB ⬇ 0.10 KB (-0.40%)
index-theme.css 1.36 KB 1.36 KB -
index-vars.css 25.76 KB 25.86 KB ⬇ 0.10 KB (-0.39%)
index.css 25.76 KB 25.86 KB ⬇ 0.10 KB (-0.39%)
mods.json 2.16 KB 2.16 KB -
themes/express.css 1.00 KB 1.00 KB -
themes/spectrum.css 0.99 KB 0.99 KB -

datepicker

File Head Base Δ
index-base.css 14.54 KB 14.55 KB ⬇ 0.01 KB (-0.08%)
index-theme.css 0.80 KB 0.80 KB -
index-vars.css 14.74 KB 14.75 KB ⬇ 0.01 KB (-0.08%)
index.css 14.74 KB 14.75 KB ⬇ 0.01 KB (-0.08%)
mods.json 1.47 KB 1.47 KB -
themes/express.css 0.70 KB 0.70 KB -
themes/spectrum.css 0.69 KB 0.69 KB -

dial

File Head Base Δ
index-base.css 11.55 KB 11.58 KB ⬇ 0.03 KB (-0.24%)
index-vars.css 11.55 KB 11.58 KB ⬇ 0.03 KB (-0.24%)
index.css 11.55 KB 11.58 KB ⬇ 0.03 KB (-0.24%)
mods.json 1.15 KB 1.15 KB -

dialog

File Head Base Δ
index-base.css 15.22 KB 15.25 KB ⬇ 0.02 KB (-0.13%)
index-vars.css 15.22 KB 15.25 KB ⬇ 0.02 KB (-0.13%)
index.css 15.22 KB 15.25 KB ⬇ 0.02 KB (-0.13%)
mods.json 1.19 KB 1.19 KB -

divider

File Head Base Δ
index-base.css 5.05 KB 5.05 KB ⬇ 0.01 KB (-0.12%)
index-vars.css 5.05 KB 5.05 KB ⬇ 0.01 KB (-0.12%)
index.css 5.05 KB 5.05 KB ⬇ 0.01 KB (-0.12%)
mods.json 0.54 KB 0.54 KB -

dropindicator

File Head Base Δ
index-base.css 3.54 KB 3.54 KB ⬇ 0.01 KB (-0.17%)
index-vars.css 3.54 KB 3.54 KB ⬇ 0.01 KB (-0.17%)
index.css 3.54 KB 3.54 KB ⬇ 0.01 KB (-0.17%)
mods.json 0.18 KB 0.18 KB -

dropzone

File Head Base Δ
index-base.css 9.60 KB 9.60 KB ⬇ < 0.01 KB (-0.04%)
index-vars.css 9.60 KB 9.60 KB ⬇ < 0.01 KB (-0.04%)
index.css 9.60 KB 9.60 KB ⬇ < 0.01 KB (-0.04%)
mods.json 1.71 KB 1.71 KB -

fieldlabel

File Head Base Δ
index-base.css 6.50 KB 6.51 KB ⬇ < 0.01 KB (-0.06%)
index-vars.css 6.50 KB 6.51 KB ⬇ < 0.01 KB (-0.06%)
index.css 6.50 KB 6.51 KB ⬇ < 0.01 KB (-0.06%)
mods.json 0.80 KB 0.80 KB -

helptext

File Head Base Δ
index-base.css 7.52 KB 7.53 KB ⬇ 0.01 KB (-0.10%)
index-vars.css 7.52 KB 7.53 KB ⬇ 0.01 KB (-0.10%)
index.css 7.52 KB 7.53 KB ⬇ 0.01 KB (-0.10%)
mods.json 0.47 KB 0.47 KB -

illustratedmessage

File Head Base Δ
index-base.css 5.90 KB 5.91 KB ⬇ < 0.01 KB (-0.07%)
index-vars.css 5.90 KB 5.91 KB ⬇ < 0.01 KB (-0.07%)
index.css 5.90 KB 5.91 KB ⬇ < 0.01 KB (-0.07%)
mods.json 1.31 KB 1.31 KB -

infieldbutton

File Head Base Δ
index-base.css 16.57 KB 16.57 KB ⬇ < 0.01 KB (-0.02%)
index-theme.css 2.72 KB 2.72 KB -
index-vars.css 18.71 KB 18.72 KB ⬇ < 0.01 KB (-0.02%)
index.css 18.71 KB 18.72 KB ⬇ < 0.01 KB (-0.02%)
mods.json 2.16 KB 2.16 KB -
themes/express.css 1.64 KB 1.64 KB -
themes/spectrum.css 1.67 KB 1.67 KB -

link

File Head Base Δ
index-base.css 4.97 KB 4.98 KB ⬇ 0.01 KB (-0.16%)
index-vars.css 4.97 KB 4.98 KB ⬇ 0.01 KB (-0.16%)
index.css 4.97 KB 4.98 KB ⬇ 0.01 KB (-0.16%)
mods.json 0.48 KB 0.48 KB -

logicbutton

File Head Base Δ
index-base.css 9.35 KB 9.29 KB ⬆ 0.06 KB (0.65%)
index-vars.css 9.35 KB 9.29 KB ⬆ 0.06 KB (0.65%)
index.css 9.35 KB 9.29 KB ⬆ 0.06 KB (0.65%)
mods.json 1.63 KB 1.63 KB -

menu

File Head Base Δ
index-base.css 39.14 KB 39.18 KB ⬇ 0.04 KB (-0.10%)
index-vars.css 39.14 KB 39.18 KB ⬇ 0.04 KB (-0.10%)
index.css 39.14 KB 39.18 KB ⬇ 0.04 KB (-0.10%)
mods.json 3.33 KB 3.33 KB -

modal

File Head Base Δ
index-base.css 5.23 KB 5.32 KB ⬇ 0.10 KB (-1.76%)
index-vars.css 5.23 KB 5.32 KB ⬇ 0.10 KB (-1.76%)
index.css 5.23 KB 5.32 KB ⬇ 0.10 KB (-1.76%)
mods.json 0.58 KB 0.54 KB ⬆ 0.04 KB (7.41%)

picker

File Head Base Δ
index-base.css 29.02 KB 29.02 KB ⬇ < 0.01 KB (-0.01%)
index-theme.css 2.46 KB 2.46 KB -
index-vars.css 30.90 KB 30.91 KB ⬇ < 0.01 KB (-0.01%)
index.css 30.90 KB 30.91 KB ⬇ < 0.01 KB (-0.01%)
mods.json 2.81 KB 2.81 KB -
themes/express.css 1.47 KB 1.47 KB -
themes/spectrum.css 1.58 KB 1.58 KB -

popover

File Head Base Δ
index-base.css 31.42 KB 31.51 KB ⬇ 0.09 KB (-0.29%)
index-theme.css 0.75 KB 0.75 KB -
index-vars.css 31.57 KB 31.66 KB ⬇ 0.09 KB (-0.28%)
index.css 31.57 KB 31.66 KB ⬇ 0.09 KB (-0.28%)
mods.json 0.62 KB 0.58 KB ⬆ 0.04 KB (6.87%)
themes/express.css 0.66 KB 0.66 KB -
themes/spectrum.css 0.68 KB 0.68 KB -

progressbar

File Head Base Δ
index-base.css 11.11 KB 11.13 KB ⬇ 0.03 KB (-0.23%)
index-vars.css 11.11 KB 11.13 KB ⬇ 0.03 KB (-0.23%)
index.css 11.11 KB 11.13 KB ⬇ 0.03 KB (-0.23%)
mods.json 1.03 KB 1.03 KB -

radio

File Head Base Δ
index-base.css 18.18 KB 18.20 KB ⬇ 0.03 KB (-0.14%)
index-theme.css 1.64 KB 1.64 KB -
index-vars.css 19.24 KB 19.26 KB ⬇ 0.03 KB (-0.13%)
index.css 19.24 KB 19.26 KB ⬇ 0.03 KB (-0.13%)
mods.json 1.27 KB 1.27 KB -
themes/express.css 1.32 KB 1.32 KB -
themes/spectrum.css 1.32 KB 1.32 KB -

rating

File Head Base Δ
index-base.css 9.63 KB 9.63 KB ⬇ < 0.01 KB (-0.02%)
index-theme.css 1.36 KB 1.36 KB -
index-vars.css 10.41 KB 10.41 KB ⬇ < 0.01 KB (-0.02%)
index.css 10.41 KB 10.41 KB ⬇ < 0.01 KB (-0.02%)
mods.json 0.82 KB 0.82 KB -
themes/express.css 0.98 KB 0.98 KB -
themes/spectrum.css 1.01 KB 1.01 KB -

search

File Head Base Δ
index-base.css 12.83 KB 12.84 KB ⬇ < 0.01 KB (-0.02%)
index-theme.css 3.20 KB 3.20 KB -
index-vars.css 15.45 KB 15.45 KB ⬇ < 0.01 KB (-0.02%)
index.css 15.45 KB 15.45 KB ⬇ < 0.01 KB (-0.02%)
mods.json 1.26 KB 1.26 KB -
themes/express.css 1.93 KB 1.93 KB -
themes/spectrum.css 1.85 KB 1.85 KB -

sidenav

File Head Base Δ
index-base.css 14.76 KB 14.78 KB ⬇ 0.02 KB (-0.12%)
index-vars.css 14.76 KB 14.78 KB ⬇ 0.02 KB (-0.12%)
index.css 14.76 KB 14.78 KB ⬇ 0.02 KB (-0.12%)
mods.json 2.18 KB 2.18 KB -

slider

File Head Base Δ
index-base.css 29.75 KB 29.79 KB ⬇ 0.04 KB (-0.12%)
index-theme.css 2.89 KB 2.89 KB -
index-vars.css 32.06 KB 32.10 KB ⬇ 0.04 KB (-0.11%)
index.css 32.06 KB 32.10 KB ⬇ 0.04 KB (-0.11%)
mods.json 2.19 KB 2.19 KB -
themes/express.css 1.75 KB 1.75 KB -
themes/spectrum.css 1.74 KB 1.74 KB -

splitview

File Head Base Δ
index-base.css 10.83 KB 10.83 KB ⬇ < 0.01 KB (-0.04%)
index-vars.css 10.83 KB 10.83 KB ⬇ < 0.01 KB (-0.04%)
index.css 10.83 KB 10.83 KB ⬇ < 0.01 KB (-0.04%)
mods.json 0.71 KB 0.71 KB -

statuslight

File Head Base Δ
index-base.css 11.49 KB 11.49 KB ⬇ < 0.01 KB (-0.03%)
index-vars.css 11.49 KB 11.49 KB ⬇ < 0.01 KB (-0.03%)
index.css 11.49 KB 11.49 KB ⬇ < 0.01 KB (-0.03%)
mods.json 1.54 KB 1.54 KB -

steplist

File Head Base Δ
index-base.css 10.08 KB 10.09 KB ⬇ 0.01 KB (-0.10%)
index-vars.css 10.08 KB 10.09 KB ⬇ 0.01 KB (-0.10%)
index.css 10.08 KB 10.09 KB ⬇ 0.01 KB (-0.10%)
mods.json 0.82 KB 0.82 KB -

stepper

File Head Base Δ
index-base.css 17.13 KB 17.19 KB ⬇ 0.06 KB (-0.35%)
index-theme.css 3.98 KB 3.98 KB -
index-vars.css 20.53 KB 20.59 KB ⬇ 0.06 KB (-0.29%)
index.css 20.53 KB 20.59 KB ⬇ 0.06 KB (-0.29%)
mods.json 1.27 KB 1.27 KB -
themes/express.css 2.30 KB 2.30 KB -
themes/spectrum.css 2.28 KB 2.28 KB -

swatch

File Head Base Δ
index-base.css 11.30 KB 11.32 KB ⬇ 0.02 KB (-0.18%)
index-vars.css 11.30 KB 11.32 KB ⬇ 0.02 KB (-0.18%)
index.css 11.30 KB 11.32 KB ⬇ 0.02 KB (-0.18%)
mods.json 0.69 KB 0.69 KB -

switch

File Head Base Δ
index-base.css 22.82 KB 22.82 KB ⬇ < 0.01 KB (-0.01%)
index-theme.css 1.92 KB 1.92 KB -
index-vars.css 24.16 KB 24.16 KB ⬇ < 0.01 KB (-0.01%)
index.css 24.16 KB 24.16 KB ⬇ < 0.01 KB (-0.01%)
mods.json 1.56 KB 1.56 KB -
themes/express.css 1.26 KB 1.26 KB -
themes/spectrum.css 1.26 KB 1.26 KB -

table

File Head Base Δ
index-base.css 46.50 KB 46.53 KB ⬇ 0.03 KB (-0.07%)
index-vars.css 46.50 KB 46.53 KB ⬇ 0.03 KB (-0.07%)
index.css 46.50 KB 46.53 KB ⬇ 0.03 KB (-0.07%)
mods.json 4.01 KB 4.01 KB -

tabs

File Head Base Δ
index-base.css 17.72 KB 17.72 KB ⬇ < 0.01 KB (-0.02%)
index-theme.css 0.78 KB 0.78 KB -
index-vars.css 17.90 KB 17.90 KB ⬇ < 0.01 KB (-0.02%)
index.css 17.90 KB 17.90 KB ⬇ < 0.01 KB (-0.02%)
mods.json 1.48 KB 1.48 KB -
themes/express.css 0.69 KB 0.69 KB -
themes/spectrum.css 0.68 KB 0.68 KB -

tag

File Head Base Δ
index-base.css 30.28 KB 30.29 KB ⬇ 0.01 KB (-0.04%)
index-theme.css 5.94 KB 5.94 KB -
index-vars.css 35.64 KB 35.65 KB ⬇ 0.01 KB (-0.03%)
index.css 35.64 KB 35.65 KB ⬇ 0.01 KB (-0.03%)
mods.json 3.14 KB 3.14 KB -
themes/express.css 3.25 KB 3.25 KB -
themes/spectrum.css 3.30 KB 3.30 KB -

textfield

File Head Base Δ
index-base.css 35.96 KB 35.97 KB ⬇ 0.02 KB (-0.05%)
index-theme.css 1.52 KB 1.52 KB -
index-vars.css 36.89 KB 36.91 KB ⬇ 0.02 KB (-0.04%)
index.css 36.89 KB 36.91 KB ⬇ 0.02 KB (-0.04%)
mods.json 2.96 KB 2.96 KB -
themes/express.css 1.05 KB 1.05 KB -
themes/spectrum.css 1.05 KB 1.05 KB -

toast

File Head Base Δ
index-base.css 8.98 KB 8.98 KB ⬇ < 0.01 KB (-0.04%)
index-theme.css 0.84 KB 0.84 KB -
index-vars.css 9.22 KB 9.23 KB ⬇ < 0.01 KB (-0.04%)
index.css 9.22 KB 9.23 KB ⬇ < 0.01 KB (-0.04%)
mods.json 1.09 KB 1.09 KB -
themes/express.css 0.72 KB 0.72 KB -
themes/spectrum.css 0.72 KB 0.72 KB -

tooltip

File Head Base Δ
index-base.css 29.90 KB 30.65 KB ⬇ 0.77 KB (-2.45%)
index-theme.css 0.86 KB 0.86 KB -
index-vars.css 30.16 KB 30.91 KB ⬇ 0.77 KB (-2.44%)
index.css 30.16 KB 30.91 KB ⬇ 0.77 KB (-2.44%)
mods.json 1.13 KB 1.09 KB ⬆ 0.04 KB (3.58%)
themes/express.css 0.73 KB 0.73 KB -
themes/spectrum.css 0.73 KB 0.73 KB -

typography

File Head Base Δ
index-base.css 40.80 KB 41.39 KB ⬇ 0.60 KB (-1.43%)
index-vars.css 40.80 KB 41.39 KB ⬇ 0.60 KB (-1.43%)
index.css 40.80 KB 41.39 KB ⬇ 0.60 KB (-1.43%)
mods.json 8.95 KB 8.95 KB -

underlay

File Head Base Δ
index-base.css 3.18 KB 3.28 KB ⬇ 0.10 KB (-2.83%)
index-vars.css 3.18 KB 3.28 KB ⬇ 0.10 KB (-2.83%)
index.css 3.18 KB 3.28 KB ⬇ 0.10 KB (-2.83%)
mods.json 0.48 KB 0.44 KB ⬆ 0.04 KB (9.17%)
* 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.

Copy link
Contributor

github-actions bot commented Jan 16, 2024

🚀 Deployed on https://pr-2429--spectrum-css.netlify.app

@castastrophe castastrophe force-pushed the feat-deprecate-overlay-migrate-commons branch 4 times, most recently from 1c282af to cf5da86 Compare January 16, 2024 18:12
@castastrophe castastrophe force-pushed the feat-deprecate-overlay-migrate-commons branch from cf5da86 to eb4dd62 Compare January 16, 2024 19:23
Copy link
Collaborator

@mdt2 mdt2 left a 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?

@castastrophe
Copy link
Collaborator Author

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.

@castastrophe castastrophe force-pushed the feat-deprecate-overlay-migrate-commons branch from eb4dd62 to 60a008a Compare January 16, 2024 19:50
@castastrophe
Copy link
Collaborator Author

castastrophe commented Jan 16, 2024

npm deprecate @spectrum-css/overlay "@spectrum-css/overlay is deprecated; placeholders can be pulled from @spectrum-css/commons/overlay.css instead."

@jawinn jawinn self-requested a review January 16, 2024 20:07
@castastrophe castastrophe force-pushed the feat-deprecate-overlay-migrate-commons branch from 60a008a to d7e08ec Compare January 16, 2024 20:14
@castastrophe castastrophe force-pushed the feat-deprecate-overlay-migrate-commons branch 8 times, most recently from 0c23d88 to 4c6fe0e Compare January 16, 2024 21:27
Copy link
Collaborator

@jawinn jawinn left a 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.

components/page/index.css Outdated Show resolved Hide resolved
@castastrophe castastrophe force-pushed the feat-deprecate-overlay-migrate-commons branch 12 times, most recently from 859ec89 to 6e0ebdd Compare January 17, 2024 17:26
- 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
@castastrophe castastrophe force-pushed the feat-deprecate-overlay-migrate-commons branch from 6e0ebdd to ac87071 Compare January 17, 2024 18:36
@castastrophe castastrophe enabled auto-merge (squash) January 17, 2024 19:02
@castastrophe castastrophe merged commit 7eecd96 into main Jan 17, 2024
14 of 19 checks passed
@castastrophe castastrophe deleted the feat-deprecate-overlay-migrate-commons branch January 17, 2024 19:14
@github-actions github-actions bot mentioned this pull request Apr 26, 2024
@github-actions github-actions bot mentioned this pull request May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review run_vrt For use on PRs looking to kick off VRT size-3 M ~18-30hrs; moderate effort or complexity, several work days needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants