-
Notifications
You must be signed in to change notification settings - Fork 200
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
fix(infield-button): updated border color for disabled state #3615
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 9e84946 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
File metricsSummaryTotal size: 2.24 MB*
infieldbutton
* An ASCII character in UTF-8 is 8 bits or 1 byte. |
🚀 Deployed on https://pr-3615--spectrum-css.netlify.app |
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.
The CSS changes look good, I'd recommend a few updates to the changeset to make our changelogs read more nicely!
c68f4e3
to
d2272ea
Compare
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.
This looks good! Just to clarify- this PR is only focused on the feedback for the disabled state, and is not addressing everything in the ticket, correct? If that's the case, I can approve once Rise's changes have been addressed! Thank you!
9ed6e2a
to
e67cfc7
Compare
Dismissing review so as not to block approval/merging from others while I'm out!
@@ -27,5 +27,9 @@ | |||
--spectrum-infield-button-background-color-hover: var(--spectrum-gray-200); | |||
--spectrum-infield-button-background-color-down: var(--spectrum-gray-200); | |||
--spectrum-infield-button-background-color-key-focus: var(--spectrum-gray-200); | |||
|
|||
&:disabled { | |||
--spectrum-infield-button-border-color: var(--spectrum-gray-300); |
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.
This probably could be set to disabled-border-color
if we wanted. I think that's also gray-300
.
- fixes hover, keyboard focus states for infield buttons within stepper, including corrected background colors and the chevron icon color
b0a6b06
to
dd337f5
Compare
TODO: run VRTs |
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.
Ran through the validation steps and everything looks good! ✨
components/stepper/index.css
Outdated
@@ -131,7 +131,7 @@ | |||
} | |||
} | |||
|
|||
&:not(.is-disabled).is-keyboardFocused { | |||
&:not(.is-disabled).is-keyboardFocused:not(.spectrum-Stepper--quiet) { |
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 want to ask about the keyboard focus state once more. Pausing review...
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.
Do we need this block? When I remove it nothing seems to break or change. @marissahuysentruyt @Rajdeepc
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 can double check.I thought I was having issues with the quiet variant, but I wonder if it was actually due to the mods I was trying to set instead...
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.
@aramos-adobe Thanks for catching this- I don't see anything broken with it removed again, so I yanked it out!
Description
The design feedback for number field revealed some requests regarding the border colors of the stepper/number field, and most recently related to the nested infield button. This PR aims to address that feedback.
Updates the value of disabled border of infield-button
Additional feedback included:
Expected: gray-900 border ✅
Expected: gray-100 button background ✅
Expected: gray-300 border ✅
Expected: gray-200 button background ✅
Expected: gray-200 button backgroundExpected: gray-900 chevron color
The green checkmarks above are styles that are already found for the stepper/number field styles in the CSS repo. The PRs that addressed these already can be found here:
#3536 (for the infield button background color corrections)
#3621 (for the focus+hover border color correction)
NOTE: We received some updated feedback from design regarding the key focus state, which means that no further CSS changes were necessary!
Expected: gray-100 button background (incorrectly had this as gray-200 originally) ✅
Expected: gray-800 chevron color (incorrectly had this as gray-900 originally) ✅
Jira/Specs
SWC-576
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
gray-300
. [@cdransf]Additional validation (the remaining validation steps likely were already completed in #3536 and #3621. This CSS already exists and functions as design expects 🥳 )
gray-200
in both the S1 and Express contexts. [@cdransf]gray-100
. [@cdransf].spectrum-InfieldButton
element (one of the stepper buttons) and turn on the:hover
state in your dev tools. Verify the nested infield button has a background color ofgray-200
. [@cdransf]gray-100
. [@cdransf]gray-800
. [@cdransf]:hover
state of.spectrum-Stepper
and.spectrum-Stepper-textfield
. [@cdransf]gray-900
. [@cdransf]Regression testing
Validate:
Screenshots
Before 🚫


After ✅


To-do list