Skip to content

Commit

Permalink
Fix ApplicationShell component aria roles issues (#2651)
Browse files Browse the repository at this point in the history
* fix(application-shell): fix a11y aria roles issues

* chore(application-shell): changeset added
  • Loading branch information
CarlosCortizasCT authored Jun 24, 2022
1 parent 0ba23b8 commit f7ec746
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .changeset/quick-plums-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@commercetools-frontend/application-shell': patch
---

Fixed aria role names.

We were using invalid role names in some of the component's elements.

Special mention to the element wrapping the notifications as it now uses the aria-live [attribute](https://www.w3.org/TR/wai-aria/#aria-live) (with **polite** value).
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ export const RestrictedApplication = <
userBusinessRole={user?.businessRole ?? undefined}
/>
<div
role="application-layout"
css={css`
height: 100vh;
display: grid;
Expand All @@ -263,7 +262,8 @@ export const RestrictedApplication = <
>
<div
ref={notificationsGlobalRef}
role="global-notifications"
role="region"
aria-live="polite"
css={css`
grid-row: 1;
grid-column: 1/3;
Expand Down Expand Up @@ -321,7 +321,6 @@ export const RestrictedApplication = <
</Route>

<header
role="header"
css={css`
grid-row: 2;
grid-column: 1/3;
Expand All @@ -334,7 +333,6 @@ export const RestrictedApplication = <
</header>

<aside
role="aside"
css={css`
position: relative;
grid-row: 3;
Expand Down

1 comment on commit f7ec746

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for merchant-center-application-kit ready!

✅ Preview
https://merchant-center-application-jftkmh277-commercetools.vercel.app

Built with commit f7ec746.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.