Skip to content

Commit

Permalink
fix: ♿ increase focus border on checkbox to match radio (#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingallday committed Apr 26, 2022
1 parent 3eedd15 commit a48a1b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/components/Molecules/Form/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export default {
$rpl-checkbox-box-border-width: rem(1px) !default;
$rpl-checkbox-box-border: $rpl-checkbox-box-border-width solid $rpl-form-radio-border-color !default;
$rpl-checkbox-box-border-focus: 1px solid rpl-color('primary') !default;
// [SDPA-6116] Focus border increased to 3 to match radio
$rpl-checkbox-box-border-focus: rem(3px) solid rpl-color('primary') !default;
$rpl-checkbox-box-border-radius: rem(4px) !default;
$rpl-checkbox-box-size: rem(20px) !default;
$rpl-checkbox-box-bg-color: rpl-color('light_neutral') !default;
Expand All @@ -95,6 +96,9 @@ export default {
&:focus {
& + .rpl-checkbox__box {
border: $rpl-checkbox-box-border-focus;
// [SDPA-6116] Focus border width is 3, so remove 6 from w x h
width: $rpl-checkbox-box-size - $rpl-checkbox-box-border-width * 6;
height: $rpl-checkbox-box-size - $rpl-checkbox-box-border-width * 6;
}
}
}
Expand Down

0 comments on commit a48a1b2

Please sign in to comment.