@brightspace-ui/core 1.202.2 → 1.205.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.
@@ -38,7 +38,7 @@ The `d2l-button` element can be used just like the native button element, but al
38
38
  ![Button](./screenshots/button.png?raw=true)
39
39
  <!-- docs: end hidden content -->
40
40
 
41
- <!-- docs: demo live name: d2l-button -->
41
+ <!-- docs: demo live name:d2l-button -->
42
42
  ```html
43
43
  <script type="module">
44
44
  import '@brightspace-ui/core/components/button/button.js';
@@ -82,7 +82,6 @@ class Card extends RtlMixin(LitElement) {
82
82
  box-sizing: border-box;
83
83
  display: inline-block;
84
84
  position: relative;
85
- transition: transform 300ms ease-out 50ms, box-shadow 0.2s;
86
85
  z-index: 0;
87
86
  }
88
87
  .d2l-card-container {
@@ -185,10 +184,6 @@ class Card extends RtlMixin(LitElement) {
185
184
  border: none;
186
185
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.03);
187
186
  }
188
- :host(:hover),
189
- :host([subtle]:hover) {
190
- transform: translateY(-4px);
191
- }
192
187
  :host(:hover) {
193
188
  box-shadow: 0 2px 14px 1px rgba(0, 0, 0, 0.06);
194
189
  }
@@ -203,7 +198,6 @@ class Card extends RtlMixin(LitElement) {
203
198
  :host([subtle][_active]:hover) {
204
199
  border-color: transparent;
205
200
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--d2l-color-celestine);
206
- transform: translateY(-4px);
207
201
  }
208
202
  /* .d2l-card-link-container-hover is used to only color/underline when
209
203
  hovering the anchor; these styles are not applied when hovering actions */
@@ -225,9 +219,16 @@ class Card extends RtlMixin(LitElement) {
225
219
  box-shadow: none;
226
220
  transform: none;
227
221
  }
228
- @media (prefers-reduced-motion: reduce) {
222
+ @media (prefers-reduced-motion: no-preference) {
229
223
  :host {
230
- transition: none;
224
+ transition: transform 300ms ease-out 50ms, box-shadow 0.2s;
225
+ }
226
+
227
+ :host(:hover),
228
+ :host([subtle]:hover),
229
+ :host([_active]:hover),
230
+ :host([subtle][_active]:hover) {
231
+ transform: translateY(-4px);
231
232
  }
232
233
  }
233
234
  `];
@@ -325,9 +325,7 @@ export const DropdownContentMixin = superclass => class extends LocalizeCoreElem
325
325
  if (isNaN(newVerticalOffset)) {
326
326
  newVerticalOffset = 20;
327
327
  }
328
- // for IE11
329
- if (window.ShadyCSS) window.ShadyCSS.styleSubtree(this, { '--d2l-dropdown-verticaloffset': `${newVerticalOffset}px` });
330
- else this.style.setProperty('--d2l-dropdown-verticaloffset', `${newVerticalOffset}px`);
328
+ this.style.setProperty('--d2l-dropdown-verticaloffset', `${newVerticalOffset}px`);
331
329
  }
332
330
  });
333
331
  }
@@ -170,13 +170,9 @@ class LoadingSpinner extends LitElement {
170
170
  updated(changedProperties) {
171
171
  changedProperties.forEach((oldValue, propName) => {
172
172
  if (propName === 'color') {
173
- // for IE11
174
- if (window.ShadyCSS) window.ShadyCSS.styleSubtree(this, { '--d2l-loading-spinner-color': this.color });
175
- else this.style.setProperty('--d2l-loading-spinner-color', this.color);
173
+ this.style.setProperty('--d2l-loading-spinner-color', this.color);
176
174
  } else if (propName === 'size') {
177
- // for IE11
178
- if (window.ShadyCSS) window.ShadyCSS.styleSubtree(this, { '--d2l-loading-spinner-size': `${this.size}px` });
179
- else this.style.setProperty('--d2l-loading-spinner-size', `${this.size}px`);
175
+ this.style.setProperty('--d2l-loading-spinner-size', `${this.size}px`);
180
176
  }
181
177
  });
182
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.202.2",
3
+ "version": "1.205.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "repository": "https://github.com/BrightspaceUI/core.git",
6
6
  "publishConfig": {