@brightspace-ui/core 1.219.3 → 1.219.4
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/components/breadcrumbs/README.md +1 -1
- package/components/button/README.md +3 -3
- package/components/inputs/docs/input-date-time.md +1 -1
- package/components/inputs/docs/input-numeric.md +1 -1
- package/components/inputs/docs/input-text.md +2 -2
- package/components/inputs/input-checkbox.js +2 -1
- package/package.json +1 -1
|
@@ -141,7 +141,7 @@ Alternately, add the `compact` attribute to only display the last breadcrumb. Th
|
|
|
141
141
|
To make your usage of `d2l-breadcrumb` (child) accessible, use the following attribute when applicable:
|
|
142
142
|
|
|
143
143
|
| Attribute | Description |
|
|
144
|
-
|
|
144
|
+
|---|---|
|
|
145
145
|
| `aria-label` | Acts as a primary label. Use if `text` does not provide enough context. |
|
|
146
146
|
|
|
147
147
|
## Current Page [d2l-breadcrumb-current-page]
|
|
@@ -62,7 +62,7 @@ The `d2l-button` element can be used just like the native button element, but al
|
|
|
62
62
|
To make your `d2l-button` accessible, use the following properties when applicable:
|
|
63
63
|
|
|
64
64
|
| Attribute | Description |
|
|
65
|
-
|
|
65
|
+
|---|---|
|
|
66
66
|
| `aria-expanded` | [Indicate expansion state of a collapsible element](https://www.w3.org/WAI/PF/aria/states_and_properties#aria-expanded). Example: [d2l-more-less](https://github.com/BrightspaceUI/core/blob/f9f30d0975ee5a8479263a84541fc3b781e8830f/components/more-less/more-less.js#L158). |
|
|
67
67
|
| `aria-haspopup` | [Indicate clicking the button opens a menu](https://www.w3.org/WAI/PF/aria/states_and_properties#aria-haspopup). Example: [d2l-dropdown](https://github.com/BrightspaceUI/core/blob/main/components/dropdown/dropdown-opener-mixin.js#L46). |
|
|
68
68
|
| `description` | Use when text on button does not provide enough context. |
|
|
@@ -104,7 +104,7 @@ The `d2l-button-subtle` element can be used just like the native `button`, but f
|
|
|
104
104
|
To make your `d2l-button-subtle` accessible, use the following properties when applicable:
|
|
105
105
|
|
|
106
106
|
| Attribute | Description |
|
|
107
|
-
|
|
107
|
+
|---|---|
|
|
108
108
|
| `aria-expanded` | [Indicate expansion state of a collapsible element](https://www.w3.org/WAI/PF/aria/states_and_properties#aria-expanded). Example: [d2l-more-less](https://github.com/BrightspaceUI/core/blob/f9f30d0975ee5a8479263a84541fc3b781e8830f/components/more-less/more-less.js#L158). |
|
|
109
109
|
| `aria-haspopup` | [Indicate clicking the button opens a menu](https://www.w3.org/WAI/PF/aria/states_and_properties#aria-haspopup). Example: [d2l-dropdown](https://github.com/BrightspaceUI/core/blob/main/components/dropdown/dropdown-opener-mixin.js#L46). |
|
|
110
110
|
| `description` | Use when text on button does not provide enough context. |
|
|
@@ -143,7 +143,7 @@ The `d2l-button-icon` element can be used just like the native `button`, for ins
|
|
|
143
143
|
To make your `d2l-button-icon` accessible, use the following properties when applicable:
|
|
144
144
|
|
|
145
145
|
| Attribute | Description |
|
|
146
|
-
|
|
146
|
+
|---|---|
|
|
147
147
|
| `text` | **REQUIRED**. Acts as a primary label and tooltip. |
|
|
148
148
|
| `aria-expanded` | [Indicate expansion state of a collapsible element](https://www.w3.org/WAI/PF/aria/states_and_properties#aria-expanded). Example: [d2l-more-less](https://github.com/BrightspaceUI/core/blob/f9f30d0975ee5a8479263a84541fc3b781e8830f/components/more-less/more-less.js#L158). |
|
|
149
149
|
| `aria-haspopup` | [Indicate clicking the button opens a menu](https://www.w3.org/WAI/PF/aria/states_and_properties#aria-haspopup). Example: [d2l-dropdown](https://github.com/BrightspaceUI/core/blob/main/components/dropdown/dropdown-opener-mixin.js#L46). |
|
|
@@ -189,7 +189,7 @@ To make your usage of `d2l-input-time` accessible, use the following properties
|
|
|
189
189
|
|--|--|
|
|
190
190
|
| `label` | **REQUIRED** [Acts as a primary label on the input](https://www.w3.org/WAI/tutorials/forms/labels/). Visible unless `label-hidden` is also used. |
|
|
191
191
|
| `label-hidden` | Use if label should be visually hidden but available for screen reader users |
|
|
192
|
-
| `labelled-by` |
|
|
192
|
+
| `labelled-by` | Use when another visible element should act as the label |
|
|
193
193
|
|
|
194
194
|
## Time Range Input [d2l-input-time-range]
|
|
195
195
|
|
|
@@ -84,7 +84,7 @@ To make your usage of `d2l-input-number` accessible, use the following propertie
|
|
|
84
84
|
|---|---|
|
|
85
85
|
| `label` | **REQUIRED.** [Acts as a primary label on the input](https://www.w3.org/WAI/tutorials/forms/labels/). Visible unless `label-hidden` is also used. |
|
|
86
86
|
| `label-hidden` | Use if label should be visually hidden but available for screen reader users. |
|
|
87
|
-
| `labelled-by` |
|
|
87
|
+
| `labelled-by` | Use when another visible element should act as the label |
|
|
88
88
|
| `unit` | Use to render the unit (offscreen) as part of the label. |
|
|
89
89
|
| `title` | Use for additional screen reader and mouseover context. |
|
|
90
90
|
|
|
@@ -138,7 +138,7 @@ To make your usage of `d2l-input-text` accessible, use the following properties
|
|
|
138
138
|
| `description` | Use when label on input does not provide enough context. |
|
|
139
139
|
| `label` | **REQUIRED** [Acts as a primary label on the input](https://www.w3.org/WAI/tutorials/forms/labels/). Visible unless `label-hidden` is also used. |
|
|
140
140
|
| `label-hidden` | Use if label should be visually hidden but available for screen reader users |
|
|
141
|
-
| `labelled-by` |
|
|
141
|
+
| `labelled-by` | Use when another visible element should act as the label |
|
|
142
142
|
| `unit` | Use to render the unit (offscreen) as part of the label. |
|
|
143
143
|
| `title` | Text for additional screen reader and mouseover context |
|
|
144
144
|
|
|
@@ -247,7 +247,7 @@ To make your usage of `d2l-input-textarea` accessible, use the following propert
|
|
|
247
247
|
| `description` | Use when label on `textarea` does not provide enough context. |
|
|
248
248
|
| `label` | **REQUIRED** [Acts as a primary label on the `textarea`](https://www.w3.org/WAI/tutorials/forms/labels/). Visible unless `label-hidden` is also used. |
|
|
249
249
|
| `label-hidden` | Use if label should be visually hidden but available for screen reader users |
|
|
250
|
-
| `labelled-by` |
|
|
250
|
+
| `labelled-by` | Use when another visible element should act as the label |
|
|
251
251
|
|
|
252
252
|
### Methods
|
|
253
253
|
|
|
@@ -199,8 +199,9 @@ class InputCheckbox extends SkeletonMixin(RtlMixin(LitElement)) {
|
|
|
199
199
|
name="${ifDefined(this.name)}"
|
|
200
200
|
tabindex="${ifDefined(tabindex)}"
|
|
201
201
|
type="checkbox"
|
|
202
|
-
.value="${this.value}"></span><span class="${classMap(textClasses)}"
|
|
202
|
+
.value="${this.value}"></span><span class="${classMap(textClasses)}"><slot></slot></span>
|
|
203
203
|
</label>
|
|
204
|
+
${offscreenContainer}
|
|
204
205
|
`;
|
|
205
206
|
}
|
|
206
207
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.219.
|
|
3
|
+
"version": "1.219.4",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|