Skip to content

Commit d7098c2

Browse files
authored
fix(ui-react): add aria-hidden to Select expand icon (#5256)
* fix(ui-react): add aria-hidden to Select expand icon * Create chilly-penguins-relate.md
1 parent ef3ca0d commit d7098c2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: .changeset/chilly-penguins-relate.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aws-amplify/ui-react": patch
3+
---
4+
5+
fix(ui-react): add aria-hidden to Select expand icon

Diff for: packages/react/src/primitives/Select/Select.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const SelectPrimitive: Primitive<SelectProps, 'select'> = (
8181
classNameModifier(ComponentClassName.SelectIcon, size)
8282
)}
8383
color={iconColor}
84+
aria-hidden="true"
8485
>
8586
{icon ?? icons?.expand ?? <IconExpandMore />}
8687
</Flex>

0 commit comments

Comments
 (0)