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
Dialog: at the largest text sizes the dialog grows past the screen and its actions overflow #5297
At the largest iOS text sizes (the accessibility sizes):
A Dialog without scrollable whose content grows with the text is taller than the screen and stays centered, so its title starts above the top edge and its actions are off screen and out of the accessibility tree. The content doesn't scroll, so the actions can't be reached. Only a tap on the narrow strips beside the dialog closes it, and a dialog without onDismiss can't be closed at all.
The actions row stays a single row aligned to the end, so when two actions don't fit side by side the first one is drawn outside the dialog's start edge, over the scrim, and cut off by the screen.
Android at font scale 2.0 fits. 6.0.0-alpha.3 does the same. A scrollable dialog also needs a style.maxHeight to stay within the screen.
Expected behaviour
The dialog stays within the safe area and its content scrolls, so the title and the actions stay reachable, and actions that don't fit side by side stack, as Material 3 dialogs do. Failing that, the docs say to use scrollable with a maximum height for content that grows with the text size.
How to reproduce?
Set the iOS text size to the largest accessibility size (xcrun simctl ui <device> content_size accessibility-extra-extra-extra-large).
Open a Dialog with an icon, a title, a paragraph of content and two actions:
<Dialogvisible={visible}onDismiss={hide}icon="alert"title="Dialog with icon"content={<Text>A paragraph or two of text explaining the choice.</Text>}actions={[<Buttonkey="no"mode="text"onPress={hide}>
Disagree
</Button>,<Buttonkey="yes"mode="text"onPress={hide}>
Agree
</Button>,]}/>
Look at where the title and the actions are, and try to reach the actions.
Activity