-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spinbutton: update internal padding for small size (#25286)
* spinbutton: update internal padding for small size Updates the internal left and right padding of SpinButton at "small" sizes such that there are 8 pixels of padding to align with other input controls. * fix typo * update internal padding so it does not affect external layout Visual regression testing showed that the previous padding change affected external layout (i.e., it might break an application's layout) so this update accounts for the width change internally. * remove negative margin * fix lint warning * Update packages/react-components/react-spinbutton/src/components/SpinButton/useSpinButtonStyles.ts Co-authored-by: Ben Howell <48106640+behowell@users.noreply.github.com> Co-authored-by: Ben Howell <48106640+behowell@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-spinbutton-76d708a4-ab34-43c6-a831-8aca052df11b.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "feat: updates internal SpinButton padding", | ||
"packageName": "@fluentui/react-spinbutton", | ||
"email": "seanmonahan@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
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