-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct the position of error text on the nimble-checkbox (#2486)
# Pull Request ## 🤨 Rationale The vertical spacing between the checkbox and its error text is incorrect, so this PR is fixing it. According to [the visual design spec](https://www.figma.com/design/PO9mFOu5BCl8aJvFchEeuN/Nimble_Components?node-id=1295-63171&node-type=frame&t=ODewc6hH8Cq1LC4n-0), the error text on the checkbox should be 2px below the checkbox's height (likely 32px or 24px based on the control height token). However, it was incorrectly implemented to put the error text 2px below the checkbox control (i.e. the square indicator). ## 👩💻 Implementation Update the template & styling for the checkbox to position the error-text correctly. ## 🧪 Testing Manually tested Verified chromatic diffs look correct ## ✅ Checklist <!--- Review the list and put an x in the boxes that apply or ~~strike through~~ around items that don't (along with an explanation). --> - [x] I have updated the project documentation to reflect my changes or determined no changes are needed.
- Loading branch information
1 parent
4ce5fa2
commit 4e192f9
Showing
3 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@ni-nimble-components-fc952a0e-3831-4c76-b9f3-98273cbeb66c.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": "Correct the position of error text on the nimble-checkbox", | ||
"packageName": "@ni/nimble-components", | ||
"email": "[email protected]", | ||
"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