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: src/components/button/button.stories.mdx
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,9 +144,30 @@ The `content_start`/`content_end` blocks override the
144
144
</Story>
145
145
</Canvas>
146
146
147
-
## Icon with slash
147
+
## States
148
148
149
-
To add a slash across the icon(s), use the `is-slashed` state modifier CSS class.
149
+
Buttons with a `disabled` attribute or with `aria-disabled` set to `'true'` will appear less prominent. ([Which should you use?](https://css-tricks.com/making-disabled-buttons-more-inclusive/))
150
+
151
+
Buttons with the `is-loading` class will display a spinner. This informs the user visually that the button is waiting for some sort of response.
To add a slash across the icon(s), use the `is-slashed` state class.
150
171
151
172
If no `content_start_icon`/`content_end_icon` or `content_start`/`content_end` block content is passed in, the `'bell'` icon will be used by default as the `content_start_icon` value.
152
173
@@ -189,6 +210,7 @@ You can override the `content_start_icon` value to a different icon.
189
210
190
211
## Template Properties
191
212
213
+
-`aria_disabled` (string, `'true'`/`'false'`): Sets the button's `aria-disabled` attribute.
192
214
-`aria_expanded` (string, `'true'`/`'false'`): Sets the button's `aria-expanded` attribute.
193
215
-`class` (string): Append a class to the root element.
194
216
-`content_start_icon` (string): The name of the [icon](/docs/design-icons--page) to render in the `content_start` block.
0 commit comments