-
Notifications
You must be signed in to change notification settings - Fork 235
fix(number-field): sp-number-field UI fixes for validation and width #5401
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
Conversation
🦋 Changeset detectedLatest commit: 5efee26 The changes in this PR will be included in the next version bump. This PR includes changesets to release 84 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 |
Branch previewReview the following VRT differencesWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
If the changes are expected, update the |
16f982b to
2994a37
Compare
2994a37 to
1d8627a
Compare
Tachometer resultsChromenumber-field permalinkbasic-test
textfield permalinktest-basic
Firefoxnumber-field permalinkbasic-test
textfield permalinktest-basic
|
…:adobe/spectrum-web-components into caseyisonit/swc-669-icon-overlap-refresh
|
closing because Marissa is magic and solved the weird VRT issues with textfield in #5408 |
Description
THIS IS A COPY OF PR #5326 -- it was going stale
Number Field had a number of issues related to the UI, default widths, and token modifiers. This PR addresses the following:
Related issue(s)
Motivation and context
Number Field should be customizable, have a default width based on design docs, and have validation icons and input truncation render correctly.
How has this been tested?
_Review the VRTs and ensure no unexpected side effects happen in other components
Check validation icons render correctly
Check you can modify the width via mod token
sp-number-fieldin dev tools--mod-stepper-width: 500pxto the host levelCheck you can modify the width via width
sp-number-fieldin dev toolswidth: 500pxto the host levelSlider [editable] number field should fill the available grid column
sp-sliderin dev toolssp-sliderdom nodeSlider [editable] number field should size correctly when grid column is modified
sp-sliderin dev tools--mod-stepper-width: 80px;to the sliderDid it pass in Desktop?
Did it pass in Mobile?
Did it pass in iPad?
Screenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main.