Skip to content

Commit

Permalink
feat(Chip): libs-555 add chip aria attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-yahia committed Apr 8, 2024
1 parent a428d2b commit 8c0c379
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/chip/src/chip/chip.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const Chip = ({
data-test={dataTest}
tabIndex={-1}
role="option"
aria-selected={selected ? 'true' : 'false'}
aria-disabled={disabled ? 'true' : 'false'}
>
<Icon icon={icon} dataTest={`${dataTest}-icon`} />
<Content overflow={overflow}>{children}</Content>
Expand Down

0 comments on commit 8c0c379

Please sign in to comment.