spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

refactor(divider): use core tokens

Open pfulton opened this issue 3 years ago • 5 comments

This updates the Divider component to use core tokens

Beta release: hold for full release.

Description

Related issue(s)

Motivation and context

How has this been tested?

  • [ ] Test case 1
    1. Go here
    2. Do this
  • [ ] Test case 2
    1. Go here
    2. Do this

Screenshots (if appropriate)

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • [ ] I have signed the Adobe Open Source CLA.
  • [ ] My code follows the code style of this project.
  • [ ] If my change required a change to the documentation, I have updated the documentation in this pull request.
  • [ ] I have read the CONTRIBUTING document.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.
  • [ ] I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

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.

pfulton avatar Aug 24 '22 14:08 pfulton

Tachometer results

Chrome

action-menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 608 kB 337.81ms - 343.75ms - unsure 🔍
-2% - +1%
-6.63ms - +2.13ms
branch 610 kB 339.81ms - 346.24ms unsure 🔍
-1% - +2%
-2.13ms - +6.63ms
-

dialog permalink

Version Bytes Avg Time vs remote vs branch
npm latest 317 kB 114.15ms - 117.88ms - unsure 🔍
-3% - +1%
-3.58ms - +1.53ms
branch 319 kB 115.30ms - 118.78ms unsure 🔍
-1% - +3%
-1.53ms - +3.58ms
-

divider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 237 kB 26.76ms - 27.75ms - unsure 🔍
-4% - +2%
-1.25ms - +0.67ms
branch 239 kB 26.72ms - 28.36ms unsure 🔍
-2% - +5%
-0.67ms - +1.25ms
-

menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 309 kB 377.88ms - 385.18ms - unsure 🔍
-1% - +2%
-2.57ms - +7.26ms
branch 311 kB 375.90ms - 382.48ms unsure 🔍
-2% - +1%
-7.26ms - +2.57ms
-

picker permalink

Version Bytes Avg Time vs remote vs branch
npm latest 454 kB 1206.38ms - 1222.00ms - unsure 🔍
-2% - +1%
-21.58ms - +10.88ms
branch 454 kB 1205.31ms - 1233.77ms unsure 🔍
-1% - +2%
-10.88ms - +21.58ms
-

split-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 546 kB 2050.07ms - 2053.75ms - unsure 🔍
-0% - +0%
-2.65ms - +3.98ms
branch 547 kB 2048.49ms - 2054.01ms unsure 🔍
-0% - +0%
-3.98ms - +2.65ms
-
Firefox

action-menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 608 kB 590.45ms - 607.55ms - unsure 🔍
-2% - +3%
-9.50ms - +16.30ms
branch 610 kB 585.93ms - 605.27ms unsure 🔍
-3% - +2%
-16.30ms - +9.50ms
-

dialog permalink

Version Bytes Avg Time vs remote vs branch
npm latest 317 kB 206.53ms - 217.51ms - unsure 🔍
-4% - +3%
-9.17ms - +5.69ms
branch 319 kB 208.75ms - 218.77ms unsure 🔍
-3% - +4%
-5.69ms - +9.17ms
-

divider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 237 kB 93.49ms - 108.23ms - unsure 🔍
-10% - +10%
-10.55ms - +10.19ms
branch 239 kB 93.74ms - 108.34ms unsure 🔍
-10% - +10%
-10.19ms - +10.55ms
-

menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 309 kB 724.90ms - 738.54ms - unsure 🔍
-2% - +1%
-15.46ms - +5.42ms
branch 311 kB 728.84ms - 744.64ms unsure 🔍
-1% - +2%
-5.42ms - +15.46ms
-

picker permalink

Version Bytes Avg Time vs remote vs branch
npm latest 454 kB 1777.56ms - 1806.16ms - unsure 🔍
-1% - +1%
-18.95ms - +18.91ms
branch 454 kB 1779.47ms - 1804.29ms unsure 🔍
-1% - +1%
-18.91ms - +18.95ms
-

split-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 546 kB 2181.51ms - 2224.17ms - unsure 🔍
-1% - +1%
-31.28ms - +24.64ms
branch 547 kB 2188.08ms - 2224.24ms unsure 🔍
-1% - +1%
-24.64ms - +31.28ms
-

github-actions[bot] avatar Aug 24 '22 14:08 github-actions[bot]

@lunarfusion Mind taking a look at this one?

pfulton avatar Aug 25 '22 21:08 pfulton

This is my assessment of the VRT failures.

Failure Pattern 1: Expected

classic-dark-large-ltr — classic-dark-large-rtl — express-dark-large-ltr — express-dark-large-rtl — classic-dark-large-ltr — classic-dark-large-rtl — express-dark-large-ltr — express-dark-large-rtl — classic-light-large-ltr — classic-light-large-rtl — express-light-large-ltr — express-light-large-rtl — express-lightest-large-ltr — express-lightest-large-rtl —

Screen Shot 2022-09-08 at 10 56 19 AM

Assessment: Large divider has changed thickness from 5px to 4px on Large theme.

Failure Pattern 2: Unexpected

classic-lightest-large-ltr — classic-lightest-large-rtl — classic-lightest-medium-ltr — classic-lightest-medium-rtl —

Screen Shot 2022-09-08 at 11 02 23 AM

Zoomed in:

Screen Shot 2022-09-08 at 11 07 24 AM

Assessment: This looks like a false fail to me.

Failure Pattern 3: Expected, but please review

hcm-visual —

Screen Shot 2022-09-08 at 11 08 43 AM

Assessment: Previously there was no WHCM fallback to ensure visibility of the divider.

lunarfusion avatar Sep 08 '22 15:09 lunarfusion

@pfulton following up on these VRTs to make sure I'm not holding this up.

Failure Pattern 2: Unexpected Question: Is it safe to assume this is a false failure?

Failure Pattern 3: Expected, but please review Question: Is my change to WHCM acceptable?

Thanks!

lunarfusion avatar Sep 13 '22 19:09 lunarfusion

The WHCM changes have been refined and approved by accessibility. I've merged in the CSS PR for this, graduated the beta, and updated the PR here to use the full release. This is now ready for review (and merge)

pfulton avatar Oct 06 '22 19:10 pfulton