Skip to content

fix(statuslight): remove accent variant tokens#3561

Merged
marissahuysentruyt merged 1 commit into
spectrum-twofrom
marissahuysentruyt/s2-status-light-remove-accent-variant
Feb 17, 2025
Merged

fix(statuslight): remove accent variant tokens#3561
marissahuysentruyt merged 1 commit into
spectrum-twofrom
marissahuysentruyt/s2-status-light-remove-accent-variant

Conversation

@marissahuysentruyt
Copy link
Copy Markdown
Collaborator

@marissahuysentruyt marissahuysentruyt commented Feb 17, 2025

Description

This PR addresses the TODO to remove the accent variant of the status light. The accent variant is not supported in S2, so all references in the documentation, tests and CSS should be removed now.

  • removes --spectrum-statuslight-semantic-accent-color from CSS
  • removes deprecated accent variant from template and tests

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

Screenshot 2025-02-17 at 10 51 23 AM

Additional validation

  • Searching the repo for --spectrum-statuslight-semantic-accent-color results in nothing being found
  • Searching the repo for .spectrum-StatusLight--accent results in nothing being found

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.

Screenshots

Before 🚫
Screenshot 2025-02-17 at 10 59 11 AM

After ✅
Screenshot 2025-02-17 at 10 51 23 AM

To-do list

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

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 17, 2025

🦋 Changeset detected

Latest commit: e16cdea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@spectrum-css/statuslight Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 17, 2025

File metrics

Summary

Total size: 1.42 MB*
Total change (Δ): 🟢 ⬇ 0.08 KB (-0.01%)

Table reports on changes to a package's main file.

Package Size Minified Gzipped Δ
statuslight 12.37 KB - - 🟢 ⬇ 0.08 KB

statuslight

Filename Head Minified Gzipped Compared to base
index.css 12.37 KB - - 🟢 ⬇ 0.08 KB
metadata.json 7.95 KB - - 🟢 ⬇ 0.09 KB
* Size is the sum of all main files for packages in the library.
* An ASCII character in UTF-8 is 8 bits or 1 byte.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 17, 2025

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

@marissahuysentruyt marissahuysentruyt self-assigned this Feb 17, 2025
@marissahuysentruyt marissahuysentruyt added size-1 XS ~1-6hrs; nearly trivial, a few hours, could do more than one in a single day. S2 Spectrum 2 labels Feb 17, 2025

/* Dot */
&::before {
--spectrum-statuslight-spacing-computed-top-to-dot: calc(var(--mod-statuslight-spacing-top-to-dot, var(--spectrum-statuslight-spacing-top-to-dot)) - var(--mod-statuslight-spacing-top-to-label, var(--spectrum-statuslight-spacing-top-to-label)));
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this must have been a linter fix- I didn't intentionally move this and didn't see it until the PR was created.

forced-color-adjust: none;
--highcontrast-statuslight-content-color-default: CanvasText;
--highcontrast-statuslight-subdued-content-color-default: CanvasText;
forced-color-adjust: none;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here- I think this must have been a linter fix.

</div>
`;

// TODO: the accent variant will be removed in S2.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put this TODO in main during the status light docs migration, but during the S2 status light migration I had removed the accent variant already.

@marissahuysentruyt marissahuysentruyt marked this pull request as ready for review February 17, 2025 16:10
@marissahuysentruyt marissahuysentruyt added the skip_vrt Add to a PR to skip running VRT (but still pass the action) label Feb 17, 2025
@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/s2-status-light-remove-accent-variant branch from 22895c0 to 5456dad Compare February 17, 2025 16:12
- removes --spectrum-statuslight-semantic-accent-color from CSS
- removes deprecated accent variant from template and tests
- adds changeset
- update metadata.json
@marissahuysentruyt marissahuysentruyt force-pushed the marissahuysentruyt/s2-status-light-remove-accent-variant branch from 34122ea to e16cdea Compare February 17, 2025 21:46
@marissahuysentruyt marissahuysentruyt merged commit 2637aa6 into spectrum-two Feb 17, 2025
@marissahuysentruyt marissahuysentruyt deleted the marissahuysentruyt/s2-status-light-remove-accent-variant branch February 17, 2025 21:55
castastrophe pushed a commit that referenced this pull request Feb 24, 2025
- removes --spectrum-statuslight-semantic-accent-color from CSS
- removes deprecated accent variant from template and tests
- adds changeset
- update metadata.json
castastrophe pushed a commit that referenced this pull request Feb 24, 2025
- removes --spectrum-statuslight-semantic-accent-color from CSS
- removes deprecated accent variant from template and tests
- adds changeset
- update metadata.json
castastrophe pushed a commit that referenced this pull request Feb 25, 2025
- removes --spectrum-statuslight-semantic-accent-color from CSS
- removes deprecated accent variant from template and tests
- adds changeset
- update metadata.json
@castastrophe castastrophe mentioned this pull request Aug 6, 2025
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review S2 Spectrum 2 size-1 XS ~1-6hrs; nearly trivial, a few hours, could do more than one in a single day. skip_vrt Add to a PR to skip running VRT (but still pass the action)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants