Skip to content

Commit

Permalink
fix(ADA-1789): [ORS] - Firefox playerkit - "Read more" button in the …
Browse files Browse the repository at this point in the history
…navigation overlay is not read by screen reader (NVDA) (#952)

Issue:
screen reader doesn't announce the "Read more" button in Firefox browser

Fix:
Adding role button to div element.

Resolves ADA-1789
  • Loading branch information
Tzipi-kaltura authored Oct 15, 2024
1 parent b801f42 commit 9dca8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/expandable-text/expandable-text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface ExpandableTextProps {

const ReadMoreLessButton = ({isTextExpanded, readLessLabel, readMoreLabel, onClick, onKeyDown, ...otherProps}) => {
return (
<div tabIndex={0} className={styles.moreButtonText} onClick={onClick} onKeyDown={onKeyDown} {...otherProps}>
<div role="button" tabIndex={0} className={styles.moreButtonText} onClick={onClick} onKeyDown={onKeyDown} {...otherProps}>
{isTextExpanded ? readLessLabel : readMoreLabel}
</div>
);
Expand Down

0 comments on commit 9dca8a2

Please sign in to comment.