@brightspace-ui/labs 2.43.0 → 2.43.1
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/package.json
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"author": "D2L Corporation",
|
|
75
75
|
"license": "Apache-2.0",
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@brightspace-ui/stylelint-config": "^
|
|
77
|
+
"@brightspace-ui/stylelint-config": "^2",
|
|
78
78
|
"@brightspace-ui/testing": "^1",
|
|
79
79
|
"@rollup/plugin-dynamic-import-vars": "^2",
|
|
80
80
|
"@rollup/plugin-node-resolve": "^16",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"rollup-plugin-copy": "^3",
|
|
90
90
|
"rollup-plugin-delete": "^3",
|
|
91
91
|
"sinon": "^21",
|
|
92
|
-
"stylelint": "^
|
|
92
|
+
"stylelint": "^17"
|
|
93
93
|
},
|
|
94
94
|
"files": [
|
|
95
95
|
"labs.serge.json",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"resize-observer-polyfill": "^1",
|
|
115
115
|
"webvtt-parser": "^2"
|
|
116
116
|
},
|
|
117
|
-
"version": "2.43.
|
|
117
|
+
"version": "2.43.1"
|
|
118
118
|
}
|
|
@@ -4,13 +4,11 @@ import './navigation-link-back.js';
|
|
|
4
4
|
import { css, html, LitElement } from 'lit';
|
|
5
5
|
import { bodyCompactStyles } from '@brightspace-ui/core/components/typography/styles.js';
|
|
6
6
|
import { classMap } from 'lit/directives/class-map.js';
|
|
7
|
-
import { getFlag } from '@brightspace-ui/core/helpers/flags.js';
|
|
8
7
|
import { navigationSharedStyle } from './navigation-shared-styles.js';
|
|
9
8
|
import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
|
|
10
9
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
11
10
|
|
|
12
11
|
const mediaQueryList = window.matchMedia('(max-width: 615px)');
|
|
13
|
-
const immersiveNavTextSpacingFlag = getFlag('GAUD-8465-immersive-nav-text-spacing', true);
|
|
14
12
|
|
|
15
13
|
class NavigationImmersive extends LitElement {
|
|
16
14
|
|
|
@@ -39,7 +37,6 @@ class NavigationImmersive extends LitElement {
|
|
|
39
37
|
reflect: true
|
|
40
38
|
},
|
|
41
39
|
_dynamicSpacingHeight: { state: true },
|
|
42
|
-
_spacingUseHeightVar: { attribute: '_spacing-use-height-var', type: Boolean, reflect: true },
|
|
43
40
|
_middleHidden: { state: true },
|
|
44
41
|
_middleNoRightBorder: { state: true },
|
|
45
42
|
_smallWidth: { state: true }
|
|
@@ -135,10 +132,6 @@ class NavigationImmersive extends LitElement {
|
|
|
135
132
|
position: unset;
|
|
136
133
|
}
|
|
137
134
|
|
|
138
|
-
:host([_spacing-use-height-var]) .d2l-labs-navigation-immersive-spacing {
|
|
139
|
-
height: calc(var(--d2l-labs-navigation-immersive-height-main) + 5px);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
135
|
@media (max-width: 929px) {
|
|
143
136
|
.d2l-labs-navigation-immersive-margin {
|
|
144
137
|
margin: 0 24px;
|
|
@@ -178,12 +171,8 @@ class NavigationImmersive extends LitElement {
|
|
|
178
171
|
this._middleNoRightBorder = true;
|
|
179
172
|
this._middleObserver = new ResizeObserver(this._onMiddleResize.bind(this));
|
|
180
173
|
this._rightObserver = new ResizeObserver(this._onRightResize.bind(this));
|
|
181
|
-
this._spacingUseHeightVar = !immersiveNavTextSpacingFlag;
|
|
182
174
|
|
|
183
|
-
|
|
184
|
-
if (immersiveNavTextSpacingFlag) {
|
|
185
|
-
this._navigationObserver = new ResizeObserver(this._onNavigationResize.bind(this));
|
|
186
|
-
}
|
|
175
|
+
this._navigationObserver = new ResizeObserver(this._onNavigationResize.bind(this));
|
|
187
176
|
|
|
188
177
|
this._smallWidth = false;
|
|
189
178
|
this._dynamicSpacingHeight = undefined;
|
|
@@ -289,12 +278,9 @@ class NavigationImmersive extends LitElement {
|
|
|
289
278
|
this._rightObserver.observe(right);
|
|
290
279
|
}
|
|
291
280
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
if (navigation) {
|
|
296
|
-
this._navigationObserver.observe(navigation);
|
|
297
|
-
}
|
|
281
|
+
const navigation = this.shadowRoot?.querySelector('.d2l-navigiation-immersive-fixed');
|
|
282
|
+
if (navigation) {
|
|
283
|
+
this._navigationObserver.observe(navigation);
|
|
298
284
|
}
|
|
299
285
|
}
|
|
300
286
|
|