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.
212212
213213- ` aria_disabled ` (string, ` 'true' ` /` 'false' ` ): Sets the button's ` aria-disabled ` attribute.
214214- ` 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.
215217- ` class ` (string): Append a class to the root element.
216218- ` content_start_icon ` (string): The name of the [ icon] ( /docs/design-icons--page ) to render in the ` content_start ` block.
217219- ` 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 2121 {% if aria_expanded %}
2222 aria-expanded="{{ aria_expanded }}"
2323 {% endif %}
24+ {% if aria_labelledby %}
25+ aria-labelledby="{{ aria_labelledby }}"
26+ {% endif %}
27+ {% if aria_describedby %}
28+ aria-describedby="{{ aria_describedby }}"
29+ {% endif %}
2430 {% if tag_name == ' a' %}
2531 href="{{ href | default (' #' ) }}"
2632 {% elseif tag_name == ' button' %}
You can’t perform that action at this time.
0 commit comments