Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Refactored role logic
Browse files Browse the repository at this point in the history
  • Loading branch information
adavijit committed Apr 24, 2024
1 parent 12470bc commit 763604f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/terra-form-select/src/shared/_Tag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const Tag = ({
}
};

const attributes = isInputFocused ? '' : { 'aria-label': intl.formatMessage({ id: 'Terra.form.select.deselect' }, { text: children }) };
const attributes = isInputFocused ? { role: 'presentation' }
: { role: 'button', 'aria-label': intl.formatMessage({ id: 'Terra.form.select.deselect' }, { text: children }) };
return (
<li className={cx('tag', theme.className)} ref={tagRef}>
<span className={cx('display')}>
Expand Down

0 comments on commit 763604f

Please sign in to comment.