Skip to content

Commit

Permalink
feat(redmine 1306617): accessibility correction unsupported aria attr… (
Browse files Browse the repository at this point in the history
#210)

* feat(redmine 1306617): accessibility correction unsupported aria attribute
  • Loading branch information
Meriemu authored and MorganeLeCaignec committed Sep 26, 2024
1 parent 03664ad commit 8d4ed77
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 33 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 @@ -83,7 +83,6 @@ export function CollapseButtonControlled<
return (
<>
<Button
aria-expanded={opened ? 'true' : 'false'}
classNames={{
label: labelClasses.join(' '),
root: rootClasses.join(' '),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ 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
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-size="md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
style="padding: 0rem;"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -191,7 +190,6 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -217,7 +215,6 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</span>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -243,7 +240,6 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</span>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -304,7 +300,6 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -330,7 +325,6 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</span>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -357,7 +351,6 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</div>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -384,7 +377,6 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</div>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -410,7 +402,6 @@ exports[`HeaderMenu matches snapshot in mobile mode 1`] = `
</span>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports[`SidebarFilters matches snapshot 1`] = `
>
<div>
<div
aria-expanded="true"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-size="md"
Expand Down Expand Up @@ -219,7 +218,6 @@ exports[`SidebarFilters matches snapshot 1`] = `
style="padding: 0rem;"
>
<div
aria-expanded="true"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -419,7 +417,6 @@ exports[`SidebarFilters matches snapshot 1`] = `
</div>
</div>
<div
aria-expanded="true"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -480,7 +477,6 @@ exports[`SidebarFilters matches snapshot 1`] = `
style="box-sizing: border-box; opacity: 1; transition: opacity 200ms ease; border-top: 1px solid #dee2e6;"
>
<div
aria-expanded="true"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -634,7 +630,6 @@ exports[`SidebarFilters matches snapshot 1`] = `
</div>
</div>
<div
aria-expanded="true"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -744,7 +739,6 @@ exports[`SidebarFilters matches snapshot 1`] = `
</div>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -770,7 +764,6 @@ exports[`SidebarFilters matches snapshot 1`] = `
</span>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
class="m_1b7284a3 mantine-Paper-root"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -104,7 +103,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -131,7 +129,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
</div>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -219,7 +216,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -246,7 +242,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
</div>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -334,7 +329,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -360,7 +354,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
</span>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -421,7 +414,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -448,7 +440,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
</div>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -475,7 +466,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
</div>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -528,7 +518,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
</span>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -616,7 +605,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down Expand Up @@ -677,7 +665,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
style="box-sizing: border-box; opacity: 0; transition: opacity 200ms ease; display: none; height: 0px; overflow: hidden;"
>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -703,7 +690,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
</span>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand All @@ -730,7 +716,6 @@ exports[`SidebarMenu matches snapshot 1`] = `
</div>
</div>
<div
aria-expanded="false"
class="haring-focus haring-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
data-block="true"
data-selected="false"
Expand Down

0 comments on commit 8d4ed77

Please sign in to comment.