Skip to content

Commit

Permalink
feat(redmine 1306617): accessibility correction unsupported aria attr…
Browse files Browse the repository at this point in the history
…ibute
  • Loading branch information
Meriemu committed Aug 7, 2024
1 parent 810c143 commit 1dd1018
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 65 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-worms-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@smile/haring-react': minor
---

Accessibility Correction unsupported ARIA attributes
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export function CollapseButtonControlled<
root: rootClasses.join(' '),
section: classes.section,
}}
component="div"
data-selected={selected}
data-testid="root"
fullWidth={fullWidth}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`CollapseButton matches snapshot 1`] = `
>
@media (max-width: 35.99375em) {.mantine-visible-from-xs {display: none !important;}}@media (min-width: 36em) {.mantine-hidden-from-xs {display: none !important;}}@media (max-width: 47.99375em) {.mantine-visible-from-sm {display: none !important;}}@media (min-width: 48em) {.mantine-hidden-from-sm {display: none !important;}}@media (max-width: 61.99375em) {.mantine-visible-from-md {display: none !important;}}@media (min-width: 62em) {.mantine-hidden-from-md {display: none !important;}}@media (max-width: 74.99375em) {.mantine-visible-from-lg {display: none !important;}}@media (min-width: 75em) {.mantine-hidden-from-lg {display: none !important;}}@media (max-width: 87.99375em) {.mantine-visible-from-xl {display: none !important;}}@media (min-width: 88em) {.mantine-hidden-from-xl {display: none !important;}}
</style>
<div
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -21,6 +21,7 @@ exports[`CollapseButton matches snapshot 1`] = `
data-variant="white"
data-with-right-section="true"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand Down Expand Up @@ -63,7 +64,7 @@ exports[`CollapseButton matches snapshot 1`] = `
</button>
</span>
</span>
</div>
</button>
<div
aria-hidden="true"
class=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
class="m_1b7284a3 mantine-Paper-root"
style="padding: 0rem;"
>
<div
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -139,6 +139,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
data-variant="white"
data-with-right-section="true"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand Down Expand Up @@ -183,14 +184,14 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</button>
</span>
</span>
</div>
</button>
<div
aria-hidden="true"
class=""
data-testid="content"
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -199,6 +200,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
data-testid="root"
data-variant="white"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand All @@ -215,8 +217,8 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</button>
</span>
</span>
</div>
<div
</button>
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -225,6 +227,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
data-testid="root"
data-variant="white"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand All @@ -241,8 +244,8 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</button>
</span>
</span>
</div>
<div
</button>
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -252,6 +255,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
data-variant="white"
data-with-right-section="true"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand Down Expand Up @@ -296,14 +300,14 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</button>
</span>
</span>
</div>
</button>
<div
aria-hidden="true"
class=""
data-testid="content"
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -312,6 +316,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
data-testid="root"
data-variant="white"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand All @@ -328,8 +333,8 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</button>
</span>
</span>
</div>
<div
</button>
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -338,6 +343,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
data-testid="root"
data-variant="white"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand All @@ -354,9 +360,9 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</button>
</span>
</span>
</div>
</button>
</div>
<div
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -365,6 +371,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
data-testid="root"
data-variant="white"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand All @@ -381,9 +388,9 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</button>
</span>
</span>
</div>
</button>
</div>
<div
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -392,6 +399,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
data-testid="root"
data-variant="white"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand All @@ -408,8 +416,8 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</button>
</span>
</span>
</div>
<div
</button>
<button
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
Expand All @@ -418,6 +426,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
data-testid="root"
data-variant="white"
style="--button-height: var(--button-height-md); --button-padding-x: var(--button-padding-x-md); --button-fz: var(--mantine-font-size-md); --button-radius: 0rem; --button-bg: var(--mantine-color-white); --button-hover: rgba(252, 252, 252, 1); --button-color: var(--mantine-color-cyan-filled); --button-bd: calc(0.0625rem * var(--mantine-scale)) solid transparent;"
type="button"
>
<span
class="m_80f1301b mantine-Button-inner"
Expand All @@ -434,7 +443,7 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</button>
</span>
</span>
</div>
</button>
</div>
</div>
`;
Loading

0 comments on commit 1dd1018

Please sign in to comment.