Skip to content

Commit 5845bc8

Browse files
authored
fix(Notification): upgrade non-submitting close controls (#59126)
1 parent dc4490a commit 5845bc8

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎components/notification/__tests__/__snapshots__/demo-extend.test.ts.snap‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ exports[`renders components/notification/demo/render-panel.tsx extend context co
556556
<button
557557
aria-label="Close"
558558
class="ant-notification-notice-close"
559+
type="button"
559560
>
560561
<span
561562
aria-label="Close"

‎components/notification/__tests__/__snapshots__/demo-semantic.test.tsx.snap‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ exports[`renders components/notification/demo/_semantic.tsx correctly 1`] = `
8181
<button
8282
aria-label="Close"
8383
class="ant-notification-notice-close semantic-mark-close"
84+
type="button"
8485
>
8586
<span
8687
aria-label="close"
@@ -154,6 +155,7 @@ exports[`renders components/notification/demo/_semantic.tsx correctly 1`] = `
154155
<button
155156
aria-label="Close"
156157
class="ant-notification-notice-close semantic-mark-close"
158+
type="button"
157159
>
158160
<span
159161
aria-label="close"

‎components/notification/__tests__/__snapshots__/demo.test.ts.snap‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ exports[`renders components/notification/demo/render-panel.tsx correctly 1`] = `
542542
<button
543543
aria-label="Close"
544544
class="ant-notification-notice-close"
545+
type="button"
545546
>
546547
<span
547548
aria-label="Close"

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"@rc-component/menu": "~1.5.0",
136136
"@rc-component/motion": "^1.3.3",
137137
"@rc-component/mutate-observer": "^2.0.1",
138-
"@rc-component/notification": "~2.0.7",
138+
"@rc-component/notification": "~2.0.8",
139139
"@rc-component/pagination": "~1.4.0",
140140
"@rc-component/picker": "~1.12.0",
141141
"@rc-component/progress": "~1.0.2",

0 commit comments

Comments
 (0)