@brightspace-ui/core 2.14.1 → 2.14.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.
@@ -16,6 +16,7 @@ export const TagListItemMixin = superclass => class extends LocalizeCoreElement(
16
16
  return {
17
17
  /**
18
18
  * Enables the option to clear a tag list item. The `d2l-tag-list-item-clear` event will be dispatched when the user selects to delete the item. The consumer must handle the actual item deletion.
19
+ * @type {boolean}
19
20
  */
20
21
  clearable: { type: Boolean },
21
22
  /**
@@ -63,12 +64,12 @@ export const TagListItemMixin = superclass => class extends LocalizeCoreElement(
63
64
  overflow: hidden;
64
65
  text-overflow: ellipsis;
65
66
  }
66
- :host(:focus) .tag-list-item-container,
67
- :host(:focus:hover) .tag-list-item-container {
67
+ :host(:focus-visible) .tag-list-item-container,
68
+ :host(:focus-visible:hover) .tag-list-item-container {
68
69
  box-shadow: inset 0 0 0 2px var(--d2l-color-celestine), 0 2px 4px rgba(0, 0, 0, 0.03);
69
70
  }
70
71
  :host(:hover) .tag-list-item-container,
71
- :host(:focus) .tag-list-item-container {
72
+ :host(:focus-visible) .tag-list-item-container {
72
73
  background-color: var(--d2l-color-sylvite);
73
74
  }
74
75
  :host(:hover) .tag-list-item-container {
@@ -114,11 +115,11 @@ export const TagListItemMixin = superclass => class extends LocalizeCoreElement(
114
115
  // ignore focus events coming from inside the tag content
115
116
  if (e.composedPath()[0] !== this) return;
116
117
  /** @ignore */
117
- container.dispatchEvent(new FocusEvent('focus', { bubbles: true, cancelable: true }));
118
+ container.dispatchEvent(new FocusEvent('focus', { bubbles: false, cancelable: true }));
118
119
  });
119
120
  this.addEventListener('blur', () => {
120
121
  /** @ignore */
121
- container.dispatchEvent(new FocusEvent('blur', { bubbles: true, cancelable: true }));
122
+ container.dispatchEvent(new FocusEvent('blur', { bubbles: false, cancelable: true }));
122
123
  });
123
124
  this.addEventListener('keydown', this._handleKeydown);
124
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.14.1",
3
+ "version": "2.14.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",
@@ -52,7 +52,7 @@
52
52
  "axe-core": "^4",
53
53
  "chalk": "^5",
54
54
  "eslint": "^8",
55
- "eslint-config-brightspace": "^0.16",
55
+ "eslint-config-brightspace": "^0.17",
56
56
  "eslint-plugin-html": "^6",
57
57
  "eslint-plugin-import": "^2",
58
58
  "eslint-plugin-lit": "^1",