Skip to content

Commit

Permalink
Remove alert presentation role (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmithadhoc authored Nov 13, 2024
1 parent 4076708 commit 1597e26
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions packages/storybook/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,5 @@ const observeDocsRoot = () => {
}

document.body.onload = function () {
// Fix for React 17/NVDA bug where React root is read as "clickable"
// https://github.com/nvaccess/nvda/issues/13262
// https://github.com/facebook/react/issues/20895
// document.querySelector('#root').setAttribute('role', 'presentation');

observeDocsRoot();
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('va-alert', () => {
<va-alert class="hydrated" status="info">
<mock:shadow-root>
<div class="usa-alert usa-alert--info">
<div class="usa-alert__body" role="presentation">
<div class="usa-alert__body">
<slot name="headline"></slot>
<slot></slot>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ export class VaAlert {
<div
class="usa-alert__body"
onClick={this.handleAlertBodyClick.bind(this)}
role="presentation"
>
{status === 'continue' && (
<va-icon
Expand Down

0 comments on commit 1597e26

Please sign in to comment.