@primer/view-components 0.43.3-rc.13138f73 → 0.43.3-rc.1515ad38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/assets/javascripts/components/primer/beta/details_toggle_element.d.ts +4 -3
- package/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/components/primer/alpha/action_list.js +0 -2
- package/app/components/primer/alpha/toggle_switch.js +1 -0
- package/app/components/primer/beta/details_toggle_element.d.ts +4 -3
- package/app/components/primer/beta/details_toggle_element.js +12 -7
- package/app/components/primer/beta/nav_list.js +0 -1
- package/app/components/primer/beta/nav_list_group_element.js +1 -0
- package/package.json +4 -7
@@ -3,9 +3,10 @@
|
|
3
3
|
* ensures the <details> and <summary> elements markup is properly accessible by
|
4
4
|
* updating the aria-label and aria-expanded attributes on click.
|
5
5
|
*
|
6
|
-
* aria-label values
|
7
|
-
*
|
8
|
-
*
|
6
|
+
* aria-label values are only set if provided via the `data-aria-label-open` and
|
7
|
+
* `data-aria-label-closed` attributes on the summary target. If these attributes
|
8
|
+
* are not present, no aria-label will be set, allowing screen readers to use
|
9
|
+
* the visible text content.
|
9
10
|
*
|
10
11
|
* @example
|
11
12
|
* ```html
|