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
Copy file name to clipboardExpand all lines: content/en/docs/forms/button.mdx
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,12 +127,12 @@ end
127
127
128
128
**Do's ✅**
129
129
130
-
- Use descriptive labels that clearly communicate the action
130
+
- Use descriptive labels that clearly communicate the action[^describe-buttons]
131
131
- Provide visual feedback for all interactive states
132
132
- Ensure keyboard navigation works properly
133
133
- Include loading states for asynchronous actions
134
+
- Don't pass the `disabled` attribute to buttons, instead use `aria-disabled`. You would risk disrupting the keyboard navigation flow as this would reset focus on the button.
134
135
- Use descriptive loading states with both text and visual indicators
135
-
- Maintain ARIA labels and roles
136
136
137
137
**Don'ts ❌**
138
138
@@ -423,3 +423,7 @@ These design tokens follow the [Design Tokens Format](https://design-tokens.gith
0 commit comments