Skip to content

Commit f3acb2b

Browse files
Increase Checkbox/Radio border contrast (#2316)
* increase border contrast * Create quiet-otters-care.md * Stylelint auto-fixes * Update quiet-otters-care.md Co-authored-by: Actions Auto Build <[email protected]>
1 parent 551492e commit f3acb2b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/quiet-otters-care.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Increase Checkbox/Radio border contrast
6+

src/forms/FormControl.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
@mixin Field {
5151
color: var(--color-fg-default);
5252
background-color: var(--color-canvas-default);
53-
border: solid var(--primer-borderWidth-thin, 1px) var(--color-border-default);
53+
border: var(--primer-borderWidth-thin, 1px) solid var(--color-border-default);
5454

5555
&[disabled] {
5656
color: var(--color-primer-fg-disabled);
@@ -530,7 +530,7 @@ input[type='checkbox'].FormControl-checkbox {
530530
margin: 0;
531531
margin-top: 0.125rem; // 2px to center align with label (20px line-height)
532532
cursor: pointer;
533-
border: solid var(--primer-borderWidth-thin, 1px) var(--color-border-default);
533+
border-color: var(--color-neutral-emphasis);
534534
border-radius: var(--primer-borderRadius-small, 3px);
535535
transition: background-color, border-color 80ms cubic-bezier(0.33, 1, 0.68, 1); // checked -> unchecked - add 120ms delay to fully see animation-out
536536
appearance: none;
@@ -624,6 +624,7 @@ input[type='radio'].FormControl-radio {
624624
margin: 0;
625625
margin-top: 0.125rem; // 2px to center align with label (20px line-height)
626626
cursor: pointer;
627+
border-color: var(--color-neutral-emphasis);
627628
border-radius: var(--primer-borderRadius-full, 100vh);
628629
transition: background-color, border-color 80ms cubic-bezier(0.33, 1, 0.68, 1); // checked -> unchecked - add 120ms delay to fully see animation-out
629630
appearance: none;

0 commit comments

Comments
 (0)