-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NumberControl: Add custom spin buttons (#45333)
* Rough pass at adding custom spin buttons to NumberControl * Adjust spacing of step buttons to match design * Pass along suffix if provided * DRY up onClick handlers * Remove spin buttons from tab order * Add unit tests * Update changelog * Make reducer and spin buttons use same logic * Make InputControl's onChange callback type less strict Typing the event attribute as PointerEvent<T> | ChangeEvent<T> isn't great as it means that future ways to input a value into InputControl, NumberControl and UnitControl will result in BC breaking type changes. Consumers of the component don't need to know the specifics of the event beyond that it's a synthetic event and can use `is` to determine more if necessary. * Fake event.target so that event.target.validity works * Replace hideHTMLArrows with spinControls prop * Update CHANGELOG.md * Use custom spin controls for Line Height * Deprecate hideHTMLArrows instead of removing it
- Loading branch information
1 parent
9448204
commit 2961b34
Showing
13 changed files
with
219 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.