Skip to content

Commit 13c5b9f

Browse files
authored
refactor: ensure minimum click target for checkbox and radio-button (#10458)
1 parent 62c14da commit 13c5b9f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/field-base/src/styles/checkable-base-styles.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,12 @@ export const checkable = (part, propName = part) => css`
7777
margin: 0;
7878
align-self: stretch;
7979
appearance: none;
80-
width: 100%;
81-
height: 100%;
8280
cursor: var(--_cursor);
81+
/* Ensure minimum click target (WCAG) */
82+
width: 2px;
83+
height: 2px;
84+
scale: 12;
85+
margin: auto;
8386
}
8487
8588
/* Control container (checkbox, radio button) */

0 commit comments

Comments
 (0)