Angular Material 放置取消按钮的指南是什么
What is an Angular Material guideline to place Cancel button
Angular Material 准则应将“取消”和“创建”按钮放置在何处?
它应该放在右下角,但在“创建”按钮之前,如“取消 | 创建”,应该放在右下角,还是应该放在“创建”按钮之后,如“创建 | 取消” ?
您可以在 material design spec
中看到
Action button arrangement As indicated in the Dialog design article,
buttons within the mdc-dialog__actions element are arranged
horizontally by default, with the confirming action last
.
In cases where the button text is too long for all buttons to fit on a
single line, the buttons are stacked vertically, with the confirming
action first
.
MDC Dialog detects and handles this automatically by default,
reversing the buttons when applying the stacked layout.
所以 'create' 按钮应该放在最后,还是放在第一位,这取决于它的尺寸。
Angular Material 准则应将“取消”和“创建”按钮放置在何处?
它应该放在右下角,但在“创建”按钮之前,如“取消 | 创建”,应该放在右下角,还是应该放在“创建”按钮之后,如“创建 | 取消” ?
您可以在 material design spec
中看到Action button arrangement As indicated in the Dialog design article, buttons within the mdc-dialog__actions element are arranged horizontally by default,
with the confirming action last
.In cases where the button text is too long for all buttons to fit on a single line, the buttons are stacked vertically,
with the confirming
action first
.MDC Dialog detects and handles this automatically by default, reversing the buttons when applying the stacked layout.
所以 'create' 按钮应该放在最后,还是放在第一位,这取决于它的尺寸。