-
Notifications
You must be signed in to change notification settings - Fork 218
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 1d8627a 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
|
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-field
in dev tools--mod-stepper-width: 500px
to the host levelCheck you can modify the width via width
sp-number-field
in dev toolswidth: 500px
to the host levelSlider [editable] number field should fill the available grid column
sp-slider
in dev toolssp-slider
dom nodeSlider [editable] number field should size correctly when grid column is modified
sp-slider
in 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
.