Skip to content

Commit

Permalink
Updates "left" to "leading" and "right" to "trailing" for action layo…
Browse files Browse the repository at this point in the history
…ut discussion.

PiperOrigin-RevId: 610869208
  • Loading branch information
Nobody authored and material-automation committed Feb 27, 2024
1 parent 26b93a6 commit 08a152d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Dialogs/src/MDCAlertController.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ typedef BOOL (^MDCAttributedMessageActionHandler)(NSURL *_Nonnull URL, NSRange r
Actions are the possible reactions of the user to the presented alert. Actions are added as a
button at the bottom of the alert. Affirmative actions should be added before dismissive actions.
Action buttons will be laid out from right to left if possible or top to bottom depending on space.
Action buttons will be laid out from the trailing side to the leading side (unless
@c actionsHorizontalAlignment is changed from the default) if possible, or top to bottom (by
default), depending on space.
Material spec recommends alerts should not have more than two actions.
Expand Down

0 comments on commit 08a152d

Please sign in to comment.