You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4201235
Browse filesBrowse the repository at this point in the historyBrowse files
The overlay behind the content is now hidden from assistive technology. Instead, when the modal is `dismissable`, screen reader users can dismiss it with a visually hidden button inside the dialog.
208
+
209
+
The `overlayAccessibilityLabel` prop was renamed to `dismissAccessibilityLabel`, which is used for the button's accessibility label:
210
+
211
+
```diff
212
+
<Modal
213
+
visible={visible}
214
+
onDismiss={hideModal}
215
+
- overlayAccessibilityLabel="Close"
216
+
+ dismissAccessibilityLabel="Close"
217
+
>
218
+
<Text>Content</Text>
219
+
</Modal>
220
+
```
221
+
222
+
Previously, the Android back button dismissed the modal when `dismissable` was `true`, even if `dismissableBackButton` was `false`. The `dismissableBackButton` prop can now prevent the modal from being dismissed via the back button independently of the `dismissable` prop.
223
+
198
224
### Dialog
199
225
200
-
`Dialog` now uses a `Modal` internally and doesn't require an explicit `Portal` wrapper. So you need to remove any existing `Portal` wrappers around `Dialog`:
226
+
`Dialog` now uses a `Portal` internally and doesn't require an explicit `Portal` wrapper. So you need to remove any existing `Portal` wrappers around `Dialog`:
201
227
202
228
```diff
203
229
-<Portal>
@@ -210,9 +236,37 @@ e.g.:
210
236
+</Dialog>
211
237
```
212
238
239
+
The dialog now has the `dialog` role. On web, the dialog's accessible name is set automatically by `Dialog.Title`. You can specify a different name with the new `aria-label` prop, e.g. when the dialog has no title:
When the dialog is `dismissable`, screen reader users can dismiss it with a visually hidden button inside the dialog. You can change the button's accessibility label with the new `dismissAccessibilityLabel` prop.
250
+
213
251
- The default elevation changed from level `1` to level `3`.
214
252
- The `style` prop no longer configures the background color or border radius. You can override `theme.colors.surfaceContainerHigh` and `theme.shapes.corner.extraLarge` using the `theme` prop instead.
215
253
254
+
### Menu
255
+
256
+
The `overlayAccessibilityLabel` prop was renamed to `dismissAccessibilityLabel`:
257
+
258
+
```diff
259
+
<Menu
260
+
visible={visible}
261
+
onDismiss={closeMenu}
262
+
anchor={anchor}
263
+
- overlayAccessibilityLabel="Close"
264
+
+ dismissAccessibilityLabel="Close"
265
+
>
266
+
<Menu.Item title="Item"/>
267
+
</Menu>
268
+
```
269
+
216
270
### Searchbar
217
271
218
272
The misspelled `traileringIcon` props have been renamed:
0 commit comments