Skip to content

Commit

Permalink
fix: Modal throws a11y error (ant-design#50339)
Browse files Browse the repository at this point in the history
* test: fix ci

* chore: upgrade rc-dialog

* chore: update snapshot

* fix test case
  • Loading branch information
afc163 authored Aug 9, 2024
1 parent c6116fa commit 4bc4d7a
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 162 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,6 @@ __image_snapshots__/
.devcontainer*

# From v5
locale/
locale/
.eslintcache
server/
Original file line number Diff line number Diff line change
Expand Up @@ -18491,7 +18491,6 @@ exports[`ConfigProvider components Modal configProvider 1`] = `
style="width: 520px;"
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18555,7 +18554,6 @@ exports[`ConfigProvider components Modal configProvider 1`] = `
</div>
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18584,7 +18582,6 @@ exports[`ConfigProvider components Modal configProvider componentDisabled 1`] =
style="width: 520px;"
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18650,7 +18647,6 @@ exports[`ConfigProvider components Modal configProvider componentDisabled 1`] =
</div>
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18679,7 +18675,6 @@ exports[`ConfigProvider components Modal configProvider componentSize large 1`]
style="width: 520px;"
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18743,7 +18738,6 @@ exports[`ConfigProvider components Modal configProvider componentSize large 1`]
</div>
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18772,7 +18766,6 @@ exports[`ConfigProvider components Modal configProvider componentSize middle 1`]
style="width: 520px;"
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18836,7 +18829,6 @@ exports[`ConfigProvider components Modal configProvider componentSize middle 1`]
</div>
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18865,7 +18857,6 @@ exports[`ConfigProvider components Modal configProvider virtual and dropdownMatc
style="width: 520px;"
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18929,7 +18920,6 @@ exports[`ConfigProvider components Modal configProvider virtual and dropdownMatc
</div>
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -18958,7 +18948,6 @@ exports[`ConfigProvider components Modal normal 1`] = `
style="width: 520px;"
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -19022,7 +19011,6 @@ exports[`ConfigProvider components Modal normal 1`] = `
</div>
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -19051,7 +19039,6 @@ exports[`ConfigProvider components Modal prefixCls 1`] = `
style="width: 520px;"
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down Expand Up @@ -19115,7 +19102,6 @@ exports[`ConfigProvider components Modal prefixCls 1`] = `
</div>
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down
2 changes: 0 additions & 2 deletions components/image/__tests__/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ exports[`Image Default Group preview props 1`] = `
role="dialog"
>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand All @@ -220,7 +219,6 @@ exports[`Image Default Group preview props 1`] = `
</div>
</div>
<div
aria-hidden="true"
style="width: 0px; height: 0px; overflow: hidden; outline: none;"
tabindex="0"
/>
Expand Down
Loading

0 comments on commit 4bc4d7a

Please sign in to comment.