@brightspace-ui/core 3.235.1 → 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>
@@ -1,7 +1,6 @@
1
1
  import '../colors/colors.js';
2
2
  import { css, html, nothing } from 'lit';
3
3
  import { isInteractiveInListItemComposedPath, ListItemMixin } from './list-item-mixin.js';
4
- import { getFlag } from '../../helpers/flags.js';
5
4
  import { getUniqueId } from '../../helpers/uniqueId.js';
6
5
  import { ifDefined } from 'lit/directives/if-defined.js';
7
6
 
@@ -46,7 +45,6 @@ export const ListItemLinkMixin = superclass => class extends ListItemMixin(super
46
45
  super();
47
46
  this.actionHref = null;
48
47
  this._primaryActionId = getUniqueId();
49
- this._propagateLinkClickEvent = getFlag('GAUD-8733-list-item-propagate-link-click-event', true);
50
48
  }
51
49
 
52
50
  willUpdate(changedProperties) {
@@ -65,18 +63,6 @@ export const ListItemLinkMixin = superclass => class extends ListItemMixin(super
65
63
  } else {
66
64
  /** Dispatched when the item's primary link action is clicked */
67
65
  this.dispatchEvent(new CustomEvent('d2l-list-item-link-click', { bubbles: true }));
68
-
69
- if (!this._propagateLinkClickEvent) {
70
- e.stopPropagation();
71
-
72
- // Dispatches click event from the list item to maintain existing functionality in consumers that listen for the click event
73
- const listItemClickEvent = new e.constructor(e.type, e);
74
- listItemClickEvent.preventDefault = () => {
75
- e.preventDefault();
76
- };
77
- /** @ignore */
78
- this.dispatchEvent(listItemClickEvent);
79
- }
80
66
  }
81
67
  }
82
68
 
@@ -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.235.1",
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",