@brightspace-ui/core 3.344.8 → 3.344.9
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.
|
@@ -37,6 +37,7 @@ The `<d2l-input-number>` element is similar to `<d2l-input-text>`, except it's i
|
|
|
37
37
|
| `label` | String, required | Explicitly defined label for the element. |
|
|
38
38
|
| `autocomplete` | String | Specifies which types of values [can be autofilled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) by the browser. |
|
|
39
39
|
| `autofocus` | Boolean, default: `false` | When set, will automatically place focus on the input. |
|
|
40
|
+
| `description` | String | Additional information communicated to screenreader users when focusing on the input. |
|
|
40
41
|
| `disabled` | Boolean, default: `false` | Disables the input. |
|
|
41
42
|
| `input-width` | String, default: `4rem` | Restricts the maximum width of the input box without restricting the width of the label. |
|
|
42
43
|
| `label-hidden` | Boolean, default: `false` | Hides the label visually. Hidden labels are still read by screen readers so make sure to set an appropriate label. |
|
|
@@ -99,6 +100,7 @@ The `<d2l-input-percent>` element is similar to `<d2l-input-number>`, except it
|
|
|
99
100
|
|---|---|---|
|
|
100
101
|
| `label` | String, required | Explicitly defined label for the element. |
|
|
101
102
|
| `autofocus` | Boolean, default: `false` | When set, will automatically place focus on the input. |
|
|
103
|
+
| `description` | String | Additional information communicated to screenreader users when focusing on the input. |
|
|
102
104
|
| `disabled` | Boolean, default: `false` | Disables the input. |
|
|
103
105
|
| `input-width` | String, default: `4rem` | Restricts the maximum width of the input box without restricting the width of the label. |
|
|
104
106
|
| `label-hidden` | Boolean, default: `false` | Hides the label visually. Hidden labels are still read by screen readers so make sure to set an appropriate label. |
|
|
@@ -91,6 +91,11 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
|
|
|
91
91
|
*/
|
|
92
92
|
// eslint-disable-next-line lit/no-native-attributes
|
|
93
93
|
autofocus: { type: Boolean },
|
|
94
|
+
/**
|
|
95
|
+
* ACCESSIBILITY: Additional information communicated to screenreader users when focusing on the input
|
|
96
|
+
* @type {string}
|
|
97
|
+
*/
|
|
98
|
+
description: { type: String },
|
|
94
99
|
/**
|
|
95
100
|
* Disables the input
|
|
96
101
|
* @type {boolean}
|
|
@@ -354,6 +359,7 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
|
|
|
354
359
|
label="${ifDefined(this.label)}"
|
|
355
360
|
?label-hidden="${this.labelHidden || this.labelledBy}"
|
|
356
361
|
.labelRequired="${false}"
|
|
362
|
+
description="${ifDefined(this.description)}"
|
|
357
363
|
name="${ifDefined(this.name)}"
|
|
358
364
|
?required="${this.required}"
|
|
359
365
|
?skeleton="${this.skeleton}"
|
|
@@ -21,6 +21,11 @@ class InputPercent extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMix
|
|
|
21
21
|
*/
|
|
22
22
|
// eslint-disable-next-line lit/no-native-attributes
|
|
23
23
|
autofocus: { type: Boolean },
|
|
24
|
+
/**
|
|
25
|
+
* ACCESSIBILITY: Additional information communicated to screenreader users when focusing on the input
|
|
26
|
+
* @type {string}
|
|
27
|
+
*/
|
|
28
|
+
description: { type: String },
|
|
24
29
|
/**
|
|
25
30
|
* Disables the input
|
|
26
31
|
* @type {boolean}
|
|
@@ -96,6 +101,7 @@ class InputPercent extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMix
|
|
|
96
101
|
?autofocus="${this.autofocus}"
|
|
97
102
|
@change="${this._handleChange}"
|
|
98
103
|
class="vdiff-target"
|
|
104
|
+
description=${ifDefined(this.description)}
|
|
99
105
|
?disabled="${this.disabled}"
|
|
100
106
|
.forceInvalid="${this.invalid}"
|
|
101
107
|
input-width="${ifDefined(this.inputWidth)}"
|
package/custom-elements.json
CHANGED
|
@@ -7452,6 +7452,11 @@
|
|
|
7452
7452
|
"description": "Specifies which types of values [can be autofilled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) by the browser.",
|
|
7453
7453
|
"type": "string"
|
|
7454
7454
|
},
|
|
7455
|
+
{
|
|
7456
|
+
"name": "description",
|
|
7457
|
+
"description": "ACCESSIBILITY: Additional information communicated to screenreader users when focusing on the input",
|
|
7458
|
+
"type": "string"
|
|
7459
|
+
},
|
|
7455
7460
|
{
|
|
7456
7461
|
"name": "hide-invalid-icon",
|
|
7457
7462
|
"description": "ADVANCED: Hide the alert icon when input is invalid",
|
|
@@ -7562,6 +7567,12 @@
|
|
|
7562
7567
|
"description": "Specifies which types of values [can be autofilled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) by the browser.",
|
|
7563
7568
|
"type": "string"
|
|
7564
7569
|
},
|
|
7570
|
+
{
|
|
7571
|
+
"name": "description",
|
|
7572
|
+
"attribute": "description",
|
|
7573
|
+
"description": "ACCESSIBILITY: Additional information communicated to screenreader users when focusing on the input",
|
|
7574
|
+
"type": "string"
|
|
7575
|
+
},
|
|
7565
7576
|
{
|
|
7566
7577
|
"name": "hideInvalidIcon",
|
|
7567
7578
|
"attribute": "hide-invalid-icon",
|
|
@@ -7737,6 +7748,11 @@
|
|
|
7737
7748
|
"path": "./components/inputs/input-percent.js",
|
|
7738
7749
|
"description": "This component wraps the \"<d2l-input-number>\" tag and is intended for inputting percent values.",
|
|
7739
7750
|
"attributes": [
|
|
7751
|
+
{
|
|
7752
|
+
"name": "description",
|
|
7753
|
+
"description": "ACCESSIBILITY: Additional information communicated to screenreader users when focusing on the input",
|
|
7754
|
+
"type": "string"
|
|
7755
|
+
},
|
|
7740
7756
|
{
|
|
7741
7757
|
"name": "input-width",
|
|
7742
7758
|
"description": "Restricts the maximum width of the input box without restricting the width of the label.",
|
|
@@ -7797,6 +7813,12 @@
|
|
|
7797
7813
|
}
|
|
7798
7814
|
],
|
|
7799
7815
|
"properties": [
|
|
7816
|
+
{
|
|
7817
|
+
"name": "description",
|
|
7818
|
+
"attribute": "description",
|
|
7819
|
+
"description": "ACCESSIBILITY: Additional information communicated to screenreader users when focusing on the input",
|
|
7820
|
+
"type": "string"
|
|
7821
|
+
},
|
|
7800
7822
|
{
|
|
7801
7823
|
"name": "inputWidth",
|
|
7802
7824
|
"attribute": "input-width",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.344.
|
|
3
|
+
"version": "3.344.9",
|
|
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",
|