chore: updating old button and removing deprecated disabled colors#24970
chore: updating old button and removing deprecated disabled colors#24970georgewrmarshall merged 2 commits intodevelopfrom
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
a9936a9 to
e09b865
Compare
| --color-border-primary-hover: var(--color-primary-default-hover); | ||
|
|
||
| .btn-primary { | ||
| background-color: var(--color-background-primary); |
There was a problem hiding this comment.
Updating color documentation
Before
color.docs720.mov
After
after720.mov
| &[disabled] { | ||
| cursor: auto; | ||
| opacity: 0.5; | ||
| opacity: var(--opacity-disabled); |
There was a problem hiding this comment.
Uses the global opacity token which = 0.5
| } | ||
|
|
||
| &--disabled, | ||
| &[disabled] { | ||
| opacity: 1; | ||
| color: var(--color-error-disabled); | ||
| } | ||
| } |
There was a problem hiding this comment.
Warning disabled works as expected checking local branch against develop branch GitHub storybook
warning720.mov
| 'primary-alternative': --color-primary-alternative, | ||
| 'primary-muted': --color-primary-muted, | ||
| 'primary-inverse': --color-primary-inverse, | ||
| 'primary-disabled': --color-primary-disabled, |
| 'error-alternative': --color-error-alternative, | ||
| 'error-muted': --color-error-muted, | ||
| 'error-inverse': --color-error-inverse, | ||
| 'error-disabled': --color-error-disabled, |
| primaryAlternative = 'primary-alternative', | ||
| primaryMuted = 'primary-muted', | ||
| primaryInverse = 'primary-inverse', | ||
| primaryDisabled = 'primary-disabled', |
| errorAlternative = 'error-alternative', | ||
| errorMuted = 'error-muted', | ||
| errorInverse = 'error-inverse', | ||
| errorDisabled = 'error-disabled', |
| .btn-secondary { | ||
| color: var(--color-primary-default); | ||
| border: 1px solid var(--color-primary-muted); | ||
| border: 1px solid var(--color-primary-default); | ||
| background-color: var(--color-background-default); | ||
|
|
||
| &:hover { | ||
| border-color: var(--color-primary-default); | ||
| } | ||
|
|
||
| &:active { | ||
| background: var(--color-primary-muted); | ||
| color: var(--color-primary-inverse); | ||
| background: var(--color-primary-default); | ||
| border-color: var(--color-primary-default); | ||
| } | ||
|
|
||
| &--disabled, | ||
| &[disabled] { | ||
| opacity: 1; | ||
| color: var(--color-primary-muted); | ||
| } | ||
| } |
There was a problem hiding this comment.
Checking secondary type button local build against develop github storybook works as expected
after.secondary720.mov
| opacity: 1; | ||
| color: var(--color-text-muted); | ||
| opacity: var(--opacity-disabled); |
There was a problem hiding this comment.
Button default adheres to design system standards and works as expected when comparing against develop github storybook
after.default720.mov
|
|
||
| &--disabled, | ||
| &[disabled] { | ||
| opacity: 1; | ||
| border-color: var(--color-error-disabled); | ||
| background-color: var(--color-error-disabled); | ||
| } |
There was a problem hiding this comment.
Button danger primary works as expected checking local branch storybook against develop github storybook
after.danger720.mov
| input[type="submit"][disabled] { | ||
| cursor: not-allowed; | ||
| opacity: 0.5; | ||
| opacity: var(--opacity-disabled); |
There was a problem hiding this comment.
| opacity: 1; | ||
| pointer-events: none; | ||
| color: var(--color-primary-disabled); |
There was a problem hiding this comment.
Button link works as expected when comparing local against develop github storybook
link.after720.mov
| &--disabled, | ||
| &[disabled] { | ||
| border-color: var(--color-primary-disabled); | ||
| color: var(--color-primary-disabled); | ||
| } | ||
|
|
There was a problem hiding this comment.
duplicate CSS
| &--disabled, | ||
| &[disabled] { | ||
| border-color: var(--color-border-muted); | ||
| color: var(--color-text-muted); | ||
| } | ||
|
|
There was a problem hiding this comment.
duplicate CSS
| &--disabled, | ||
| &[disabled] { | ||
| border-color: var(--color-error-disabled); | ||
| color: var(--color-error-disabled); | ||
| } | ||
|
|
There was a problem hiding this comment.
duplicate CSS
| &--disabled, | ||
| &[disabled] { | ||
| background-color: var(--color-primary-disabled); | ||
| } | ||
|
|
There was a problem hiding this comment.
duplicate CSS
| &--disabled, | ||
| &[disabled] { | ||
| background-color: var(--color-error-disabled); | ||
| } | ||
|
|
There was a problem hiding this comment.
duplicate CSS
| opacity: 1; | ||
| pointer-events: none; | ||
| color: var(--color-primary-disabled); |
There was a problem hiding this comment.
duplicate CSS
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #24970 +/- ##
===========================================
- Coverage 65.70% 65.70% -0.00%
===========================================
Files 1366 1366
Lines 54361 54359 -2
Branches 14141 14141
===========================================
- Hits 35716 35713 -3
- Misses 18645 18646 +1 ☔ View full report in Codecov by Sentry. |
Builds ready [0c23ef4]
Page Load Metrics (50 ± 3 ms)
|




Description
This pull request removes the primary-disabled and error-disabled colors in preparation for upgrading to design token v4. The updates include modifications to the old button component, and the removal of these colors from styles and helpers.
Related issues
Fixes: #24962 #24963
Manual testing steps
Screenshots/Recordings
Before
before720.mov
After
after720.mov
Pre-merge author checklist
Pre-merge reviewer checklist