Skip to content

Commit

Permalink
chore: [IOBP-641] Add ListItemHeader a11y role as heading (#268)
Browse files Browse the repository at this point in the history
## Short description
This PR adds the header role to the label of the `ListItemHeader`
component.

## List of changes proposed in this pull request
- Added `role` attribute to the `H6` component that wraps the label

## How to test
With the voice over active, you should be able to hear the heading role
while tapping on it.
  • Loading branch information
Hantex9 authored May 21, 2024
1 parent f02d0dd commit aa43183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/listitems/ListItemHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const ListItemHeader = ({
endElement !== undefined && endElement.type !== "badge"
}
>
<H6 weight="Regular" color={theme["textBody-tertiary"]}>
<H6 role="heading" weight="Regular" color={theme["textBody-tertiary"]}>
{label}
</H6>
</View>
Expand Down

0 comments on commit aa43183

Please sign in to comment.