Skip to content

Commit

Permalink
fix(a11y): false aria-hidden causes inconsistent behavior (#4074)
Browse files Browse the repository at this point in the history
  • Loading branch information
YUCLing authored Oct 22, 2024
1 parent f97c67e commit d300210
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/core/js/src/admin/components/UserListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export default class UserListPage extends AdminPage {
)
);

emailAddress.attr('aria-hidden', visible ? 'false' : 'true');
emailAddress.attr('aria-hidden', visible ? null : 'true');

if (visible) {
emailToggleButtonIcon.addClass('fa-eye');
Expand Down
2 changes: 1 addition & 1 deletion framework/core/js/src/common/components/ModalManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class ModalManager extends Component<IModalManagerAttrs> {
// See: http://web-accessibility.carnegiemuseums.org/code/dialogs/

if (!this.attrs.state.isModalOpen()) {
document.getElementById('app')?.setAttribute('aria-hidden', 'false');
document.getElementById('app')?.removeAttribute('aria-hidden');
this.focusTrap!.deactivate?.();
clearAllBodyScrollLocks();

Expand Down

0 comments on commit d300210

Please sign in to comment.