@brightspace-ui/core 3.344.5 → 3.344.6

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.
@@ -6,7 +6,7 @@ import { getFocusRingStyles } from '../../helpers/focus.js';
6
6
  import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
7
7
 
8
8
  const RTL_MULTIPLIER = navigator.userAgent.indexOf('Edge/') > 0 ? 1 : -1; /* legacy-Edge doesn't reverse scrolling in RTL */
9
- const SCROLL_AMOUNT = 0.8;
9
+ export const SCROLL_AMOUNT = 0.8;
10
10
 
11
11
  let focusStyleSheet;
12
12
  function getFocusStyleSheet() {
@@ -211,6 +211,11 @@ class ScrollWrapper extends LocalizeCoreElement(LitElement) {
211
211
 
212
212
  if (changedProperties.has('customScrollers')) this._updateScrollTargets();
213
213
  if (changedProperties.has('_hScrollbar')) this._updateTabIndex();
214
+ if (changedProperties.has('scrollAreaOffset')) {
215
+ this._allScrollers.forEach(element => {
216
+ if (this.scrollAreaOffset) element.style.scrollPaddingInlineStart = `${this.scrollAreaOffset}px`;
217
+ });
218
+ };
214
219
  }
215
220
 
216
221
  checkScrollbar() {
@@ -14243,6 +14243,11 @@
14243
14243
  "type": "boolean",
14244
14244
  "default": "false"
14245
14245
  },
14246
+ {
14247
+ "name": "sticky-content",
14248
+ "type": "boolean",
14249
+ "default": "false"
14250
+ },
14246
14251
  {
14247
14252
  "name": "width",
14248
14253
  "type": "number",
@@ -14252,7 +14257,7 @@
14252
14257
  "properties": [
14253
14258
  {
14254
14259
  "name": "styles",
14255
- "default": "\"css`\\n\\t\\t:host {\\n\\t\\t\\tdisplay: block;\\n\\t\\t}\\n\\t\\t.d2l-scroll-wrapper-gradient {\\n\\t\\t\\tbackground: linear-gradient(to right, #e66465, #9198e5);\\n\\t\\t\\theight: 100px;\\n\\t\\t}\\n\\t\\t.d2l-scroll-wrapper-gradient-secondary {\\n\\t\\t\\tbackground: linear-gradient(to left, #e66465, #9198e5);\\n\\t\\t\\theight: 40px;\\n\\t\\t\\tposition: relative;\\n\\t\\t}\\n\\t\\t.d2l-scroll-wrapper-gradient-secondary button {\\n\\t\\t\\tinset-inline-end: 0;\\n\\t\\t\\tposition: absolute;\\n\\t\\t\\ttop: 0;\\n\\t\\t}\\n\\t`\""
14260
+ "default": "\"css`\\n\\t\\t:host {\\n\\t\\t\\tdisplay: block;\\n\\t\\t}\\n\\t\\t.d2l-scroll-wrapper-gradient {\\n\\t\\t\\tbackground: linear-gradient(to right, #e66465, #9198e5);\\n\\t\\t\\theight: 100px;\\n\\t\\t}\\n\\t\\t.d2l-scroll-wrapper-gradient-secondary {\\n\\t\\t\\tbackground: linear-gradient(to left, #e66465, #9198e5);\\n\\t\\t\\theight: 40px;\\n\\t\\t\\tposition: relative;\\n\\t\\t}\\n\\t\\t.d2l-scroll-wrapper-gradient-secondary button {\\n\\t\\t\\tinset-inline-end: 0;\\n\\t\\t\\tposition: absolute;\\n\\t\\t\\ttop: 0;\\n\\t\\t}\\n\\t\\t:host([sticky-content]) .d2l-scroll-wrapper-gradient div {\\n\\t\\t\\tdisplay: inline-block;\\n\\t\\t}\\n\\t\\t.sticky {\\n\\t\\t\\tborder-inline-end: 1px solid black;\\n\\t\\t\\tinset-inline-start: 0;\\n\\t\\t\\tposition: sticky;\\n\\t\\t\\twidth: 200px;\\n\\t\\t}\\n\\t`\""
14256
14261
  },
14257
14262
  {
14258
14263
  "name": "hideActions",
@@ -14272,6 +14277,12 @@
14272
14277
  "type": "boolean",
14273
14278
  "default": "false"
14274
14279
  },
14280
+ {
14281
+ "name": "stickyContent",
14282
+ "attribute": "sticky-content",
14283
+ "type": "boolean",
14284
+ "default": "false"
14285
+ },
14275
14286
  {
14276
14287
  "name": "width",
14277
14288
  "attribute": "width",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.344.5",
3
+ "version": "3.344.6",
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",