-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the click area for horizontal FormControls (checkboxes and ra…
…dios) (#5190) * improves the click area for horizontal FormControls (checkboxes and radios) * adds changeset * test(vrt): update snapshots * move padding from just 'label' to all children * test(vrt): update snapshots --------- Co-authored-by: mperrotti <mperrotti@users.noreply.github.com>
- Loading branch information
Showing
47 changed files
with
6 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react': patch | ||
--- | ||
|
||
Changes `<label>` wrapper of `FormControl` to put padding directly on the `label` so the entire row is clickable |
Binary file modified
BIN
-1.27 KB
(88%)
...s/Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.26 KB
(87%)
...nents/Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.29 KB
(88%)
...heckbox.test.ts-snapshots/Checkbox-Visually-Hidden-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.27 KB
(88%)
...s/components/Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.27 KB
(88%)
...s/Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.29 KB
(88%)
...kbox.test.ts-snapshots/Checkbox-Visually-Hidden-focus-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.32 KB
(88%)
...Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-focus-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.33 KB
(88%)
...x.test.ts-snapshots/Checkbox-Visually-Hidden-focus-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.29 KB
(88%)
...onents/Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-focus-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.29 KB
(88%)
...kbox.test.ts-snapshots/Checkbox-Visually-Hidden-focus-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.32 KB
(88%)
...box.test.ts-snapshots/Checkbox-Visually-Hidden-focus-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.33 KB
(88%)
....test.ts-snapshots/Checkbox-Visually-Hidden-focus-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.32 KB
(88%)
...nents/Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-focus-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.32 KB
(88%)
...box.test.ts-snapshots/Checkbox-Visually-Hidden-focus-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.28 KB
(88%)
.../Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.3 KB
(87%)
...eckbox.test.ts-snapshots/Checkbox-Visually-Hidden-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.28 KB
(88%)
.../components/Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.28 KB
(88%)
.../Checkbox.test.ts-snapshots/Checkbox-Visually-Hidden-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.08 KB
(87%)
...ents/Checkbox.test.ts-snapshots/Checkbox-With-Caption-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.08 KB
(87%)
...mponents/Checkbox.test.ts-snapshots/Checkbox-With-Caption-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.08 KB
(87%)
...s/Checkbox.test.ts-snapshots/Checkbox-With-Caption-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.08 KB
(87%)
...hots/components/Checkbox.test.ts-snapshots/Checkbox-With-Caption-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.08 KB
(87%)
...ents/Checkbox.test.ts-snapshots/Checkbox-With-Caption-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.11 KB
(87%)
...heckbox.test.ts-snapshots/Checkbox-With-Caption-focus-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.13 KB
(87%)
...ts/Checkbox.test.ts-snapshots/Checkbox-With-Caption-focus-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.11 KB
(87%)
...kbox.test.ts-snapshots/Checkbox-With-Caption-focus-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.11 KB
(87%)
...omponents/Checkbox.test.ts-snapshots/Checkbox-With-Caption-focus-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.11 KB
(87%)
...heckbox.test.ts-snapshots/Checkbox-With-Caption-focus-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.14 KB
(87%)
...eckbox.test.ts-snapshots/Checkbox-With-Caption-focus-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.13 KB
(87%)
...box.test.ts-snapshots/Checkbox-With-Caption-focus-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.14 KB
(87%)
...mponents/Checkbox.test.ts-snapshots/Checkbox-With-Caption-focus-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.14 KB
(87%)
...eckbox.test.ts-snapshots/Checkbox-With-Caption-focus-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.09 KB
(87%)
...nts/Checkbox.test.ts-snapshots/Checkbox-With-Caption-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.09 KB
(87%)
.../Checkbox.test.ts-snapshots/Checkbox-With-Caption-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.09 KB
(87%)
...ots/components/Checkbox.test.ts-snapshots/Checkbox-With-Caption-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.09 KB
(87%)
...nts/Checkbox.test.ts-snapshots/Checkbox-With-Caption-light-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.11 KB
(87%)
...components/Radio.test.ts-snapshots/Radio-With-Caption-dark-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.1 KB
(87%)
...ots/components/Radio.test.ts-snapshots/Radio-With-Caption-dark-dimmed-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.11 KB
(87%)
...ponents/Radio.test.ts-snapshots/Radio-With-Caption-dark-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.11 KB
(87%)
.../snapshots/components/Radio.test.ts-snapshots/Radio-With-Caption-dark-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.11 KB
(87%)
...components/Radio.test.ts-snapshots/Radio-With-Caption-dark-tritanopia-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.12 KB
(87%)
...omponents/Radio.test.ts-snapshots/Radio-With-Caption-light-colorblind-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.12 KB
(87%)
...onents/Radio.test.ts-snapshots/Radio-With-Caption-light-high-contrast-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.12 KB
(87%)
...snapshots/components/Radio.test.ts-snapshots/Radio-With-Caption-light-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.12 KB
(87%)
...omponents/Radio.test.ts-snapshots/Radio-With-Caption-light-tritanopia-linux.png
Oops, something went wrong.
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