Skip to content

Commit

Permalink
ADA-1065-Added aria-labelby attribute to the dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanBrinzoiK05 committed Jun 20, 2024
1 parent 3152d84 commit 8dc2258
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/cvaa-overlay/main-captions_window.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class MainCaptionsWindow extends Component<any, any> {
render(props: any): VNode<any> {
return (
<div className={[style.overlayScreen, style.active].join(' ')}>
<h2 className={style.title}>
<h2 className={style.title} id="captionsDialogTitle">
<Text id={'cvaa.title'} />
</h2>
<div role="group">
Expand Down
2 changes: 1 addition & 1 deletion src/components/overlay/overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Overlay extends Component<any, any> {
}

return (
<div tabIndex={-1} className={overlayClass.join(' ')} role="dialog" onKeyDown={this.onKeyDown} aria-label={label}>
<div tabIndex={-1} className={overlayClass.join(' ')} role="dialog" onKeyDown={this.onKeyDown} aria-labelledby="captionsDialogTitle">
<div className={style.overlayContents}>{this.props.children}</div>
{this.renderCloseButton(this.props)}
</div>
Expand Down

0 comments on commit 8dc2258

Please sign in to comment.