@brightspace-ui/core 3.172.0 → 3.173.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.
- package/components/tabs/tabs.js +2 -2
- package/package.json +1 -1
package/components/tabs/tabs.js
CHANGED
|
@@ -3,7 +3,7 @@ import '../icons/icon.js';
|
|
|
3
3
|
import '../../helpers/queueMicrotask.js';
|
|
4
4
|
import './tab-internal.js';
|
|
5
5
|
import { css, html, LitElement, unsafeCSS } from 'lit';
|
|
6
|
-
import { cssEscape, findComposedAncestor, getOffsetParent } from '../../helpers/dom.js';
|
|
6
|
+
import { cssEscape, findComposedAncestor, getOffsetParent, isVisible } from '../../helpers/dom.js';
|
|
7
7
|
import { getFocusPseudoClass, getFocusRingStyles } from '../../helpers/focus.js';
|
|
8
8
|
import { ArrowKeysMixin } from '../../mixins/arrow-keys/arrow-keys-mixin.js';
|
|
9
9
|
import { bodyCompactStyles } from '../typography/styles.js';
|
|
@@ -1200,7 +1200,7 @@ class Tabs extends LocalizeCoreElement(ArrowKeysMixin(SkeletonMixin(LitElement))
|
|
|
1200
1200
|
|
|
1201
1201
|
#hideTabsList() {
|
|
1202
1202
|
// don't animate the tabs list visibility if it's the inital render
|
|
1203
|
-
if (reduceMotion || !this._initialized) {
|
|
1203
|
+
if (reduceMotion || !this._initialized || !isVisible(this)) {
|
|
1204
1204
|
this._state = 'hidden';
|
|
1205
1205
|
} else if (this.shadowRoot) {
|
|
1206
1206
|
const layout = this.shadowRoot.querySelector('.d2l-tabs-layout');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.173.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",
|