mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
1 line
4.2 KiB
JavaScript
1 line
4.2 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["e9ef14dd"],{e9ef14dd:function(e,a,t){"use strict";t.d(a,"__esModule",{value:!0}),t.d(a,"texts",{enumerable:!0,get:function(){return o;}}),t("1af8d4d2");let o=[{value:"Guide users to achieve the desired actions.",paraId:0,tocIndex:0},{value:"Prevent user to make mistakes.",paraId:0,tocIndex:0},{value:"\n ",paraId:1},{value:"Default buttons are used for non-primary actions. If not sure which button type to choose from, the default button is always a safe bet.",paraId:2,tocIndex:3},{value:'Emphasize on "complete" or "recommend" action. There is at most one primary button per a button group.',paraId:3,tocIndex:4},{value:"Low emphasis and light-weight button type, such as actions in a table.",paraId:4,tocIndex:5},{value:"Icon provides a visual clue.",paraId:5,tocIndex:6},{value:"It could fit more buttons in a small space.",paraId:6,tocIndex:6},{value:"Buttons with icon only need to provide Tooltip to indicate the meaning of the button.",paraId:6,tocIndex:6},{value:"Provides supplementary meaning to the button.",paraId:7,tocIndex:7},{value:"Common button types could be used to showcase to different ",paraId:8},{value:"emphasis",paraId:8},{value:".",paraId:8},{value:"Guide users to add content in an area.",paraId:9},{value:"Warns users that there are risks involved in the action.",paraId:10},{value:"Used in the dark or colored background.",paraId:11,tocIndex:13},{value:'Usually appeared alone and intend to used as a command. For example, it is used in the landing page or welcome banner. It could be as wide as its parent container. It is recommended to have just 1 "Call to Action" button in 1 screen.',paraId:12},{value:'Place buttons in the users\' reading pattern for the ease of discovery, such as the "F-Shaped Reading Pattern" and "Z-Shaped Reading Pattern".',paraId:13},{value:"Header: subject's heading, summary and navigation",paraId:14},{value:"Body: detailed content",paraId:14},{value:"Footer: supplementary information or toolbar",paraId:14},{value:"Place buttons in different areas could have different meanings.",paraId:15},{value:"Body section has collapsed or hidden content, such as it could not show the entire content in one screen;",paraId:16},{value:'Body section has complex content. For example, it has multiple subgroups and each subgroup has its own actions. Now it is needed to separate "Complete" action from body section to avoid confusion.',paraId:16},{value:"In short, footer's purpose is to have a separation from body.",paraId:17},{value:"Recommend to start from the reading flow, collapsed content should always be on the right.",paraId:18},{value:"How to Decide Button Ordering",paraId:19},{value:"Conversation Flow: place buttons in the order similar to a conversation between computers and users. ",paraId:20},{value:"Ask users the needed actions or your desired actions, then present the risks involved.",paraId:20},{value:"Navigation Flow: for example, if a button represents going back, should be placed on the left implying it is going to the previous step.",paraId:20},{value:"When multiple buttons form a group, align buttons in one line with spaces in between.",paraId:21},{value:"When there are too many buttons on the screen, we could group relevant buttons together and use similar design for that group. If one of the buttons is primary action, we could still use emphasis.",paraId:22,tocIndex:22},{value:"Collapse buttons in the order of importance",paraId:23},{value:"Flat display of all the buttons:",paraId:24},{value:" could separate different groups using space; or use divider to group similar buttons.",paraId:24},{value:"Labels should clearly indicate to users what would happen when buttons got clicked.",paraId:25},{value:"Should use verb (except dropdown buttons)",paraId:26},{value:"Should be relevant to the context and be concise.",paraId:26},{value:'Ant Design use "OK / Cancel" as default label, but you could still use below methods to customize the label text:',paraId:27},{value:"Describe the action result.",paraId:28},{value:"Publish, Login, Register.",paraId:29},{value:"If primary action means negative, stress the consequences.",paraId:30},{value:"Are you sure to delete it? Delete / Cancel",paraId:31}];}}]); |