-
Notifications
You must be signed in to change notification settings - Fork 56
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 quantity selector focus state #2099
Conversation
✅ Deploy Preview for boosted ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This comment was marked as resolved.
This comment was marked as resolved.
FYI #2090 is merged, I've rebased this PR. First dev review can be started. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
NICE, ok 👌 |
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.
LGTM 🚀
Looks good to me. |
It's possible to keep the center input square at I would rather find a way to override this rule for input groups to do it and remove the negative margins to make everything looks perfectly squared:
=> see commit e1aa6c8 |
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.
$quantity-selector-sm-width
should be 5.625rem
(90px) instead of 5.5rem
also if we change $quantity-selector-input-max-width: 2.5rem
(2.625rem atm) and $quantity-selector-input-sm-max-width: 1.875rem
(2.5rem atm) it could avoid the flex-shrink
in the comment below
What would you think about these modifications ?
I just pushed one commit without the (We can just revert the last commit if it's too much) |
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.
One more thing and we're GTG.
On the .input-group
side, I think it'd be fine since it corrects a small shift we had. Any thoughts @julien-deramond ?
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 comment was marked as resolved.
This comment was marked as resolved.
7c8ece0
to
4517d1c
Compare
After clicking in the area where the value is set to "12", the value is a little bit truncated: IDK if it's possible but might try to have a 20x20 area but reduce the left and right padding Edit: tried something with a9afefa |
Related issues
Coming from the separation of old #1949 PR into two distinct, more comprehensible and easier to review/maintain PR.
This PR is coming alongside with the work on the insufficient contrast in form error state (PR #2090) and was needed after the suggestions made by our design team during Spec meeting - June, 13.
Description
When on error and focused, we must keep the wole borders for the input in the middle and for the buttons.
So we must go from this:
to this:
(same for buttons)
Motivation & Context
Improve a11y and design unity.
Types of change
Live previews
Checklist
Contribution
Accessibility
Design
Development
Documentation
Checklist (for Core Team only)
After the merge