@brightspace-ui/core 2.26.1 → 2.26.2

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.
@@ -27,6 +27,7 @@ export const radioStyles = css`
27
27
  }
28
28
  .d2l-input-radio,
29
29
  .d2l-input-radio:hover:disabled,
30
+ .d2l-input-radio:hover.d2l-disabled,
30
31
  .d2l-input-radio-label > input[type="radio"],
31
32
  .d2l-input-radio-label > input[type="radio"]:hover:disabled {
32
33
  background-color: var(--d2l-color-regolith);
@@ -154,6 +154,7 @@ class Input extends SkeletonMixin(LabelledMixin(LitElement)) {
154
154
 
155
155
  _handleRadioClick(e) {
156
156
  e.stopPropagation();
157
+ if (this.disabled) return;
157
158
  this.selected = true;
158
159
  }
159
160
 
@@ -147,7 +147,8 @@ export const SelectionMixin = superclass => class extends RtlMixin(superclass) {
147
147
  if (!e.composedPath()[0].classList.contains('d2l-selection-input-radio')) return;
148
148
  if (e.keyCode < keyCodes.LEFT || e.keyCode > keyCodes.DOWN) return;
149
149
 
150
- const selectables = Array.from(this._selectionSelectables.values());
150
+ const selectables = Array.from(this._selectionSelectables.values())
151
+ .filter(item => !item.disabled);
151
152
  let currentIndex = selectables.findIndex(selectable => selectable.selected);
152
153
  if (currentIndex === -1) currentIndex = 0;
153
154
  let newIndex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.26.1",
3
+ "version": "2.26.2",
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",