@brightspace-ui/core 3.333.0 → 3.333.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.
@@ -80,6 +80,7 @@ When contributing changes to icons, the SVG files should be properly formatted.
80
80
  - not contain negative values
81
81
  - there should be no `<title>` element
82
82
  - there should be no inline `<style>` -- all style for line fills should be applied directly to the SVG elements
83
+ - there should be no stroke attributes (e.g. `stroke`, `stroke-width`, `stroke-*`)
83
84
  - color of SVG elements should be "tungsten" (`#494c4e`)
84
85
 
85
86
  The best way to have most of these rules applied for you automatically is to put the icon through [SVGOMG](https://jakearchibald.github.io/svgomg/) with these options selected:
@@ -163,7 +163,9 @@ class Menu extends PropertyRequiredMixin(ThemeMixin(HierarchicalViewMixin(LitEle
163
163
  }
164
164
  }
165
165
 
166
- resetFocusables() {
166
+ resetFocusables(isActiveView) {
167
+ const focusable = this._getTabFocusable();
168
+ if (isActiveView && focusable.getRootNode().activeElement === focusable) return;
167
169
  this._getTabFocusable()?.setAttribute('tabindex', '-1');
168
170
  }
169
171
 
@@ -281,8 +283,8 @@ class Menu extends PropertyRequiredMixin(ThemeMixin(HierarchicalViewMixin(LitEle
281
283
  if (returnItem) returnItem.setAttribute('text', this.label);
282
284
  }
283
285
 
284
- _onHideComplete() {
285
- this.resetFocusables();
286
+ _onHideComplete(e) {
287
+ this.resetFocusables(e.detail.activeView === this);
286
288
  this.active = this.isActive();
287
289
  }
288
290
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.333.0",
3
+ "version": "3.333.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",