@brightspace-ui/labs 2.44.0 → 2.44.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.
package/package.json CHANGED
@@ -114,5 +114,5 @@
114
114
  "resize-observer-polyfill": "^1",
115
115
  "webvtt-parser": "^2"
116
116
  },
117
- "version": "2.44.0"
117
+ "version": "2.44.2"
118
118
  }
@@ -84,7 +84,6 @@ The `d2l-labs-navigation-band` also includes a `slot` with a custom scrollbar an
84
84
 
85
85
  ***Relevant CSS class name:***
86
86
  * `--d2l-branding-primary-color`: Used to customize the colour of the top navigation band.
87
- * `--d2l-labs-navigation-band-slot-height`: When using the slot, this is needed to setup the proper scrollbar and fading effects.
88
87
 
89
88
  ## Main Header [d2l-labs-navigation-main-header]
90
89
 
@@ -12,7 +12,7 @@ class NavigationBand extends LitElement {
12
12
  static get styles() {
13
13
  return [centererStyles, guttersStyles, css`
14
14
  :host {
15
- background: linear-gradient(180deg, var(--d2l-branding-primary-color, var(--d2l-color-celestine)) var(--d2l-labs-navigation-band-slot-height, 1.5rem), #ffffff 0%);
15
+ background: linear-gradient(180deg, var(--d2l-branding-primary-color, var(--d2l-color-celestine)) 1.5rem, #ffffff 0%);
16
16
  display: block;
17
17
  min-height: 4px;
18
18
  position: relative; /* Needed for Firefox */
@@ -48,7 +48,7 @@ class NavigationBand extends LitElement {
48
48
  .d2l-labs-navigation-scroll-before,
49
49
  .d2l-labs-navigation-scroll-after {
50
50
  height: 100%;
51
- max-height: var(--d2l-labs-navigation-band-slot-height, 1.5rem);
51
+ max-height: 1.5rem; /* should match linear-background height */
52
52
  pointer-events: none;
53
53
  position: absolute;
54
54
  top: 0;
@@ -95,12 +95,12 @@ class NavigationBand extends LitElement {
95
95
 
96
96
  connectedCallback() {
97
97
  super.connectedCallback();
98
- this.addEventListener('d2l-labs-navigation-band-slot-scroll-request', this._handleScrollRequest);
98
+ this.addEventListener('d2l-navigation-band-slot-scroll-request', this._handleScrollRequest);
99
99
  }
100
100
 
101
101
  disconnectedCallback() {
102
102
  super.disconnectedCallback();
103
- this.removeEventListener('d2l-labs-navigation-band-slot-scroll-request', this._handleScrollRequest);
103
+ this.removeEventListener('d2l-navigation-band-slot-scroll-request', this._handleScrollRequest);
104
104
  }
105
105
 
106
106
  render() {