-
Notifications
You must be signed in to change notification settings - Fork 210
fix(statuslight): remove accent variant tokens #3561
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| "@spectrum-css/statuslight": patch | ||
| --- | ||
|
|
||
| Removes references to the accent variant, since the accent status light was deprecated in S2. | ||
|
|
||
| Removed variant: | ||
|
|
||
| `.spectrum-StatusLight--accent` | ||
| `--spectrum-statuslight-semantic-accent-color` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,7 +111,6 @@ | |
| --spectrum-statuslight-content-color-default: var(--spectrum-neutral-content-color-default); | ||
| --spectrum-statuslight-subdued-content-color-default: var(--spectrum-neutral-subdued-content-color-default); | ||
| --spectrum-statuslight-semantic-neutral-color: var(--spectrum-neutral-visual-color); | ||
| --spectrum-statuslight-semantic-accent-color: var(--spectrum-accent-visual-color); | ||
| --spectrum-statuslight-semantic-negative-color: var(--spectrum-negative-visual-color); | ||
| --spectrum-statuslight-semantic-info-color: var(--spectrum-informative-visual-color); | ||
| --spectrum-statuslight-semantic-notice-color: var(--spectrum-notice-visual-color); | ||
|
|
@@ -159,15 +158,14 @@ | |
|
|
||
| /* 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))); | ||
| content: ""; | ||
| flex-grow: 0; | ||
| flex-shrink: 0; | ||
| display: inline-block; | ||
| inline-size: var(--mod-statuslight-dot-size, var(--spectrum-statuslight-dot-size)); | ||
| block-size: var(--mod-statuslight-dot-size, var(--spectrum-statuslight-dot-size)); | ||
| border-radius: var(--mod-statuslight-corner-radius, var(--spectrum-statuslight-corner-radius)); | ||
|
|
||
| --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))); | ||
| margin-block-start: var(--spectrum-statuslight-spacing-computed-top-to-dot); | ||
| margin-inline-end: var(--mod-statuslight-spacing-dot-to-label, var(--spectrum-statuslight-spacing-dot-to-label)); | ||
| } | ||
|
|
@@ -277,9 +275,9 @@ | |
|
|
||
| @media (forced-colors: active) { | ||
| .spectrum-StatusLight { | ||
| forced-color-adjust: none; | ||
| --highcontrast-statuslight-content-color-default: CanvasText; | ||
| --highcontrast-statuslight-subdued-content-color-default: CanvasText; | ||
| forced-color-adjust: none; | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here- I think this must have been a linter fix. |
||
|
|
||
| /* Dot */ | ||
| &::before { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,12 +27,10 @@ export const Template = ({ | |
| </div> | ||
| `; | ||
|
|
||
| // TODO: the accent variant will be removed in S2. | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I put this |
||
| export const SemanticGroup = (args, context) => Container({ | ||
| withBorder: false, | ||
| direction: "column", | ||
| content: html`${[ | ||
| "accent", | ||
| "neutral", | ||
| "info", | ||
| "negative", | ||
|
|
||
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.
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.