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 authored and Sugan G committed Apr 29, 2024
1 parent f8075d5 commit a551809
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 a551809

Please sign in to comment.