@brightspace-ui/core 3.235.2 → 3.236.0
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.
|
@@ -87,7 +87,6 @@ When provided with a `name`, the checkbox will participate in forms if it is `ch
|
|
|
87
87
|
| `label` | String, required | Label for the input |
|
|
88
88
|
| `label-hidden` | Boolean | Hides the label visually (moves it to the input's `aria-label` attribute) |
|
|
89
89
|
| `name` | String | Name of the form control. Submitted with the form as part of a name/value pair. |
|
|
90
|
-
| `not-tabbable` | Boolean | Sets `tabindex="-1"` on the checkbox. Note that an alternative method of focusing is necessary to implement if using this property. |
|
|
91
90
|
| `supporting-hidden-when-unchecked` | Boolean | Hides the supporting slot when unchecked. |
|
|
92
91
|
| `value` | String | Value of the input |
|
|
93
92
|
|
|
@@ -168,11 +168,6 @@ class InputCheckbox extends FormElementMixin(InputInlineHelpMixin(FocusMixin(Ske
|
|
|
168
168
|
* @type {boolean}
|
|
169
169
|
*/
|
|
170
170
|
labelHidden: { attribute: 'label-hidden', reflect: true, type: Boolean },
|
|
171
|
-
/**
|
|
172
|
-
* ACCESSIBILITY: ADVANCED: Sets "tabindex="-1"" on the checkbox. Note that an alternative method of focusing is necessary to implement if using this property.
|
|
173
|
-
* @type {boolean}
|
|
174
|
-
*/
|
|
175
|
-
notTabbable: { type: Boolean, attribute: 'not-tabbable' },
|
|
176
171
|
/**
|
|
177
172
|
* Hides the supporting slot when unchecked
|
|
178
173
|
* @type {boolean}
|
|
@@ -251,7 +246,6 @@ class InputCheckbox extends FormElementMixin(InputInlineHelpMixin(FocusMixin(Ske
|
|
|
251
246
|
this.label = '';
|
|
252
247
|
this.labelHidden = false;
|
|
253
248
|
this.name = '';
|
|
254
|
-
this.notTabbable = false;
|
|
255
249
|
this.supportingHiddenWhenUnchecked = false;
|
|
256
250
|
this.value = 'on';
|
|
257
251
|
this._hasSupporting = false;
|
|
@@ -263,7 +257,6 @@ class InputCheckbox extends FormElementMixin(InputInlineHelpMixin(FocusMixin(Ske
|
|
|
263
257
|
}
|
|
264
258
|
|
|
265
259
|
render() {
|
|
266
|
-
const tabindex = this.notTabbable ? -1 : undefined;
|
|
267
260
|
const supportingContentVisible = this._hasSupporting && (this.checked || !this.supportingHiddenWhenUnchecked);
|
|
268
261
|
const textClasses = {
|
|
269
262
|
'd2l-input-checkbox-text': true,
|
|
@@ -296,7 +289,6 @@ class InputCheckbox extends FormElementMixin(InputInlineHelpMixin(FocusMixin(Ske
|
|
|
296
289
|
id="${this.#inputId}"
|
|
297
290
|
.indeterminate="${this.indeterminate}"
|
|
298
291
|
name="${ifDefined(this.name)}"
|
|
299
|
-
tabindex="${ifDefined(tabindex)}"
|
|
300
292
|
type="checkbox"
|
|
301
293
|
.value="${this.value}"></span><span class="${classMap(textClasses)}">${label}<slot></slot></span>
|
|
302
294
|
</label>
|
package/custom-elements.json
CHANGED
|
@@ -5412,12 +5412,6 @@
|
|
|
5412
5412
|
"type": "boolean",
|
|
5413
5413
|
"default": "false"
|
|
5414
5414
|
},
|
|
5415
|
-
{
|
|
5416
|
-
"name": "not-tabbable",
|
|
5417
|
-
"description": "ACCESSIBILITY: ADVANCED: Sets \"tabindex=\"-1\"\" on the checkbox. Note that an alternative method of focusing is necessary to implement if using this property.",
|
|
5418
|
-
"type": "boolean",
|
|
5419
|
-
"default": "false"
|
|
5420
|
-
},
|
|
5421
5415
|
{
|
|
5422
5416
|
"name": "supporting-hidden-when-unchecked",
|
|
5423
5417
|
"description": "Hides the supporting slot when unchecked",
|
|
@@ -5490,13 +5484,6 @@
|
|
|
5490
5484
|
"type": "boolean",
|
|
5491
5485
|
"default": "false"
|
|
5492
5486
|
},
|
|
5493
|
-
{
|
|
5494
|
-
"name": "notTabbable",
|
|
5495
|
-
"attribute": "not-tabbable",
|
|
5496
|
-
"description": "ACCESSIBILITY: ADVANCED: Sets \"tabindex=\"-1\"\" on the checkbox. Note that an alternative method of focusing is necessary to implement if using this property.",
|
|
5497
|
-
"type": "boolean",
|
|
5498
|
-
"default": "false"
|
|
5499
|
-
},
|
|
5500
5487
|
{
|
|
5501
5488
|
"name": "supportingHiddenWhenUnchecked",
|
|
5502
5489
|
"attribute": "supporting-hidden-when-unchecked",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.236.0",
|
|
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",
|