File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @cloudfour/patterns ' : minor
3
+ ---
4
+
5
+ Add ` aria_labelledby ` and ` aria_describedby ` properties to button component
Original file line number Diff line number Diff line change @@ -212,6 +212,8 @@ You can override the `content_start_icon` value to a different icon.
212
212
213
213
- ` aria_disabled ` (string, ` 'true' ` /` 'false' ` ): Sets the button's ` aria-disabled ` attribute.
214
214
- ` aria_expanded ` (string, ` 'true' ` /` 'false' ` ): Sets the button's ` aria-expanded ` attribute.
215
+ - ` aria_labelledby ` (string): Sets the button's ` aria-labelledby ` attribute.
216
+ - ` aria_describedby ` (string): Sets the button's ` aria-describedby ` attribute.
215
217
- ` class ` (string): Append a class to the root element.
216
218
- ` content_start_icon ` (string): The name of the [ icon] ( /docs/design-icons--page ) to render in the ` content_start ` block.
217
219
- ` content_end_icon ` (string): The name of the [ icon] ( /docs/design-icons--page ) to render in the ` content_end ` block.
Original file line number Diff line number Diff line change 21
21
{% if aria_expanded %}
22
22
aria-expanded="{{ aria_expanded }}"
23
23
{% endif %}
24
+ {% if aria_labelledby %}
25
+ aria-labelledby="{{ aria_labelledby }}"
26
+ {% endif %}
27
+ {% if aria_describedby %}
28
+ aria-describedby="{{ aria_describedby }}"
29
+ {% endif %}
24
30
{% if tag_name == ' a' %}
25
31
href="{{ href | default (' #' ) }}"
26
32
{% elseif tag_name == ' button' %}
You can’t perform that action at this time.
0 commit comments