From 4fc40b1d1909d2d97d7c86490b960e960b53f389 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Tue, 20 Aug 2024 11:49:57 -0500 Subject: [PATCH 1/7] Add radio role and aria checked state to color checkboxes [DISCO-323] Leaving the type as checkbox retained the functionality. Adding the role takes care of the accessibility. --- src/app/content/highlights/components/ColorPicker.tsx | 2 +- .../__snapshots__/ContextMenu.spec.tsx.snap | 10 ++++++++++ .../components/__snapshots__/ColorPicker.spec.tsx.snap | 10 ++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/app/content/highlights/components/ColorPicker.tsx b/src/app/content/highlights/components/ColorPicker.tsx index 415ae6f8c2..9cb8b6c95b 100644 --- a/src/app/content/highlights/components/ColorPicker.tsx +++ b/src/app/content/highlights/components/ColorPicker.tsx @@ -48,7 +48,7 @@ const ColorButton = styled(({className, size, style, ...props}: ColorButtonProps component={