fix(actionbutton): fast follows#3540
Conversation
🦋 Changeset detectedLatest commit: 85df6e7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
🚀 Deployed on https://pr-3540--spectrum-css.netlify.app |
File metricsSummaryTotal size: 2.25 MB*
actionbutton
* An ASCII character in UTF-8 is 8 bits or 1 byte. |
|
Following up from our DM - since the disabled tokens match expectations, we can take further changes back to discuss with design re: contrast. Border radius changes do seem to be coming through, and as you noted it helps particularly the Small and Extra Small variants. Validated that a background now appears for Disabled + Selected, too. |
075a25e to
397d8d2
Compare
rise-erpelding
left a comment
There was a problem hiding this comment.
Looks good overall! Let's just double-check the S1 standard/emphasized disabled background color.
| --spectrum-actionbutton-background-color-down: var(--spectrum-gray-300); | ||
| --spectrum-actionbutton-background-color-focus: var(--spectrum-gray-200); | ||
| --spectrum-actionbutton-background-color-selected-disabled: var(--spectrum-transparent-black-200); | ||
| --spectrum-actionbutton-background-color-disabled: var(--spectrum-gray-75); |
There was a problem hiding this comment.
I'm wondering about this one... digging for the S1 spec and also looking at the last PR preview before Foundations was merged, it looks like we might want transparent for this instead? Unless there's a particular reason for this to be gray-75 instead?
There was a problem hiding this comment.
It looks like the changes resolved the initial issue (missing background for "Disabled + Selected" in Dark theme), but maybe need a second pass to keep transparent the default for disabled, and the gray the default for selected-disabled and then only do variant overrides when it changes to simplify and keep the naming meaningful.
There was a problem hiding this comment.
ohohoho good calls all around. I was thinking just to keep the S1 background color I saw on prod, but I see now that the S1 background color is actually incorrect in the first place. Sorry about the misunderstanding! I'll see if I can dig into these once more.
There was a problem hiding this comment.
Ok I think I've the transparent background back for disabled S1 buttons. fb4cc7b Let me know if something still looks off!
397d8d2 to
fb4cc7b
Compare
rise-erpelding
left a comment
There was a problem hiding this comment.
It looks good, just needs that comma back that you noted!
fb4cc7b to
0dde443
Compare
0dde443 to
19546f1
Compare
* fix(actionbutton): defines disabled background colors - defines --spectrum-actionbutton-background-color-disabled, --spectrum-actionbutton-background-color-selected-disabled custom properties to use disabled-background-color and disabled-static-*- background-color is those states - updates metadata.json - S1 actionbutton disabled background color should not have been altered - preserve express disabled `gray-200` background color, and updates background in selected-disabled dark mode (to use disabled-background- color) * fix(actionbutton): transparent background for S1 disabled state * chore(actionbutton): add changeset
19546f1 to
85df6e7
Compare
Description
🐛
During foundations review (pre-merge), we noticed that action button had some possible bugs. Those possible bugs included:
Through some investigation, it was found the the disabled background was referencing
transparent-black-*tokens instead ofdisabled-background-colortokens for the disabled states. This PR also utilizes thedisabled-static-*-background-colortokens for the static color action button's disabled state. Additionally, the corner rounding for this foundations action button component has been updated to use the S2 action button corner rounding specs to accommodate the hold/corner triangle icon better. (more thorough action button styling updates to match S2 specs will occur in the action button migration)Jira/Specs/Notes
CSS-1118
S2 action button Figma tokens specs
S2 Foundations Review canvas (see the action button notes from Steph)
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
Regression testing
--mod-actionbutton-background-color-defaultbackground color (which should be defined as--spectrum-actionbutton-background-color-disabled) resolves to the--spectrum-disabled-background-colortoken (which should begray-100).--spectrum-actionbutton-background-color-selected-disabledresolves to the--spectrum-disabled-background-colortoken (which should begray-100).--spectrum-corner-radius-medium-size-extra-small--spectrum-corner-radius-medium-size-small--spectrum-corner-radius-medium-size-medium--spectrum-corner-radius-medium-size-large--spectrum-corner-radius-medium-size-extra-largeNote: these changes were introduced to accommodate the hold icon/corner triangle spacing better.
--spectrum-actionbutton-background-color-selected-disabledbackground color resolves to--spectrum-disabled-static-black-background-colortoken.--spectrum-actionbutton-background-color-selected-disabledbackground color resolves to--spectrum-disabled-static-white-background-colortoken.Additional validation
--spectrum-corner-radius-100corner rounding.--mod-actionbutton-background-color-default(which should be set to--spectrum-actionbutton-background-color-disabledthat resolves to--spectrum-gray-200as their background color.--spectrum-corner-radius-100corner rounding as well.Validate:
Screenshots
To-do list