Skip to content

Commit 52d6cf7

Browse files
fix(SelectPanel): remove hidden attribute from selection Radio (#7030)
1 parent 9fce541 commit 52d6cf7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/stupid-olives-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
fix(SelectPanel): remove hidden attribute from selection Radio

packages/react/src/ActionList/Selection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const Selection: React.FC<React.PropsWithChildren<SelectionProps>> = ({se
3232
return (
3333
<VisualContainer className={className} data-component="ActionList.Selection">
3434
{/* This is just a way to get the visuals from Radio, but it should be ignored in terms of accessibility */}
35-
<Radio value="unused" checked={selected} aria-hidden tabIndex={-1} hidden />
35+
<Radio value="unused" checked={selected} aria-hidden tabIndex={-1} />
3636
</VisualContainer>
3737
)
3838
}

0 commit comments

Comments
 (0)