From e8b18cabaa861d486824a4a0403aacd764b671ab Mon Sep 17 00:00:00 2001 From: Lyza Danger Gardner Date: Mon, 30 Jan 2023 13:39:34 -0500 Subject: [PATCH] Ensure Checkbox has a visible ring on `focus-visible` Fixes #627 --- src/components/input/Checkbox.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/components/input/Checkbox.js b/src/components/input/Checkbox.js index a0c13344..6acf0212 100644 --- a/src/components/input/Checkbox.js +++ b/src/components/input/Checkbox.js @@ -63,6 +63,8 @@ const CheckboxNext = function Checkbox({ } } + const Icon = isChecked ? CheckedIcon : UncheckedIcon; + return ( );