@brightspace-ui/core 3.151.1 → 3.151.3

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.
@@ -9,7 +9,6 @@ import { getUniqueId } from '../../helpers/uniqueId.js';
9
9
  import { ifDefined } from 'lit/directives/if-defined.js';
10
10
  import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
11
11
  import { PropertyRequiredMixin } from '../../mixins/property-required/property-required-mixin.js';
12
- import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
13
12
 
14
13
  const MODE = {
15
14
  icon: 'icon',
@@ -21,7 +20,7 @@ const whiteAddButtonBackgroundFlag = getFlag('GAUD-7495-add-button-white-backgro
21
20
  /**
22
21
  * A component for quickly adding items to a specific locaiton.
23
22
  */
24
- class ButtonAdd extends RtlMixin(PropertyRequiredMixin(FocusMixin(LocalizeCoreElement(LitElement)))) {
23
+ class ButtonAdd extends PropertyRequiredMixin(FocusMixin(LocalizeCoreElement(LitElement))) {
25
24
  static get properties() {
26
25
  return {
27
26
  /**
@@ -119,39 +118,32 @@ class ButtonAdd extends RtlMixin(PropertyRequiredMixin(FocusMixin(LocalizeCoreEl
119
118
  @media (prefers-reduced-motion: no-preference) {
120
119
  button:hover .line,
121
120
  button:focus .line {
122
- transition: all var(--d2l-button-add-animation-duration) ease-in var(--d2l-button-add-animation-delay);
123
- }
124
- button:hover .line,
125
- button:focus .line,
126
- :host([dir="rtl"]) button:hover .line-end,
127
- :host([dir="rtl"]) button:focus .line-end {
128
121
  animation: line-start-animation var(--d2l-button-add-animation-duration) ease-in var(--d2l-button-add-animation-delay) 1 forwards;
122
+ transition: all var(--d2l-button-add-animation-duration) ease-in var(--d2l-button-add-animation-delay);
129
123
  }
130
124
  button:hover .line-end,
131
- button:focus .line-end,
132
- :host([dir="rtl"]) button:hover .line-start,
133
- :host([dir="rtl"]) button:focus .line-start {
125
+ button:focus .line-end {
134
126
  animation-name: line-end-animation;
135
127
  }
136
128
 
137
129
  @keyframes line-start-animation {
138
130
  0% {
139
- background: linear-gradient(to right, var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) left center / 113%;
131
+ background: linear-gradient(to var(--d2l-inline-end, right), var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) var(--d2l-inline-start, left) center / 113%;
140
132
  opacity: 10%;
141
133
  }
142
134
  100% {
143
- background: linear-gradient(to right, var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) left center / 113%; /* safari */
144
- background-position: right;
135
+ background: linear-gradient(to var(--d2l-inline-end, right), var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) var(--d2l-inline-start, left) center / 113%; /* safari */
136
+ background-position: var(--d2l-inline-end, right);
145
137
  }
146
138
  }
147
139
  @keyframes line-end-animation {
148
140
  0% {
149
- background: linear-gradient(to left, var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) right center / 113%;
141
+ background: linear-gradient(to var(--d2l-inline-start, left), var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) var(--d2l-inline-end, right) center / 113%;
150
142
  opacity: 10%;
151
143
  }
152
144
  100% {
153
- background: linear-gradient(to left, var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) right center / 113%; /* safari */
154
- background-position: left;
145
+ background: linear-gradient(to var(--d2l-inline-start, left), var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) var(--d2l-inline-end, right) center / 113%; /* safari */
146
+ background-position: var(--d2l-inline-start, left);
155
147
  }
156
148
  }
157
149
  }
@@ -5,13 +5,12 @@ import { css, html, LitElement } from 'lit';
5
5
  import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
6
6
  import { ifDefined } from 'lit/directives/if-defined.js';
7
7
  import { offscreenStyles } from '../offscreen/offscreen.js';
8
- import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
9
8
 
10
9
  /**
11
10
  * An icon link that can be placed in the `footer` slot.
12
11
  * @slot tooltip - slot for the link tooltip
13
12
  */
14
- class CardFooterLink extends FocusMixin(RtlMixin(LitElement)) {
13
+ class CardFooterLink extends FocusMixin(LitElement) {
15
14
 
16
15
  static get properties() {
17
16
  return {
@@ -61,7 +61,7 @@ export const LinkMixin = superclass => class extends LocalizeCoreElement(supercl
61
61
  return html`<a
62
62
  aria-label="${ifDefined(ariaLabel)}"
63
63
  class="${classMap(linkClasses)}"
64
- download="${this.download}"
64
+ download="${ifDefined(this.download)}"
65
65
  href="${ifDefined(this.href)}"
66
66
  target="${ifDefined(this.target)}"
67
67
  rel="${ifDefined(rel)}"
@@ -505,13 +505,15 @@ export const baseTypographyStyles = css`
505
505
  ${unsafeCSS(fontFacesCss)}
506
506
  html {
507
507
  --d2l-document-direction: ltr;
508
- --d2l-mirror-transform: none;
509
508
  --d2l-inline-end: right;
509
+ --d2l-inline-start: left;
510
+ --d2l-mirror-transform: none;
510
511
  }
511
512
  html[dir="rtl"] {
512
513
  --d2l-document-direction: rtl;
513
- --d2l-mirror-transform: scale(-1, 1);
514
514
  --d2l-inline-end: left;
515
+ --d2l-inline-start: right;
516
+ --d2l-mirror-transform: scale(-1, 1);
515
517
  }
516
518
 
517
519
  .d2l-typography {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.151.1",
3
+ "version": "3.151.3",
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",