@brightspace-ui/core 3.237.3 → 3.237.5

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.
@@ -284,6 +284,9 @@ export function registerSemanticVariableForSvgImageUrl(name, value) {
284
284
  if (!name || typeof value !== 'string') {
285
285
  throw new TypeError('registerSemanticVariableForSvgImageUrl requires both a name and value');
286
286
  }
287
+
288
+ if (!style) return;
289
+
287
290
  if (isCustomPropertyDefined(lightRule, name)) {
288
291
  console.warn(`registerSemanticVariableForSvgImageUrl called for ${name} but a custom property is already defined with this name`);
289
292
  }
@@ -23,13 +23,13 @@ export const _generateLinkStyles = (selector, includeSkeleton = true) => {
23
23
  return css`
24
24
  ${selectorCSS}, ${selectorCSS}:visited, ${selectorCSS}:active, ${selectorCSS}:link {
25
25
  --d2l-focus-ring-offset: 1px;
26
- color: var(--d2l-color-celestine);
26
+ color: var(--d2l-theme-text-color-interactive-default);
27
27
  cursor: pointer;
28
28
  outline-style: none;
29
29
  text-decoration: none;
30
30
  }
31
31
  ${selectorCSS}:hover {
32
- color: var(--d2l-color-celestine-minus-1);
32
+ color: var(--d2l-theme-text-color-interactive-hover);
33
33
  text-decoration: underline;
34
34
  }
35
35
  ${getFocusRingStyles(selector, { extraStyles: css`border-radius: 2px; text-decoration: underline;` })}
@@ -43,7 +43,7 @@ export const _generateLinkStyles = (selector, includeSkeleton = true) => {
43
43
  }
44
44
  @media print {
45
45
  ${selectorCSS}, ${selectorCSS}:visited, ${selectorCSS}:active, ${selectorCSS}:link {
46
- color: var(--d2l-color-ferrite);
46
+ color: var(--d2l-theme-text-color-static-standard);
47
47
  }
48
48
  }
49
49
  ${skeletonStyles}
@@ -105,7 +105,7 @@ class Link extends LocalizeCoreElement(FocusMixin(LitElement)) {
105
105
  white-space: nowrap;
106
106
  }
107
107
  d2l-icon {
108
- color: var(--d2l-color-celestine);
108
+ color: var(--d2l-theme-text-color-interactive-default);
109
109
  height: calc(1em - 1px);
110
110
  margin-inline-start: 0.315em;
111
111
  transform: translateY(0.1em);
@@ -114,25 +114,25 @@ class Link extends LocalizeCoreElement(FocusMixin(LitElement)) {
114
114
  }
115
115
 
116
116
  a:hover d2l-icon {
117
- --d2l-icon-fill-color: var(--d2l-color-celestine-minus-1);
117
+ --d2l-icon-fill-color: var(--d2l-theme-text-color-interactive-hover);
118
118
  }
119
119
 
120
120
  :host([disabled]:not([disabled-tooltip])) a:hover {
121
- color: var(--d2l-color-celestine);
121
+ color: var(--d2l-theme-text-color-interactive-default);
122
122
  text-decoration: none;
123
123
  }
124
124
  :host([disabled]:not([disabled-tooltip])) a:hover d2l-icon {
125
- --d2l-icon-fill-color: var(--d2l-color-celestine);
125
+ --d2l-icon-fill-color: var(--d2l-theme-text-color-interactive-default);
126
126
  }
127
127
  a[aria-disabled="true"],
128
128
  a[aria-disabled="true"]:active {
129
129
  cursor: default;
130
130
  }
131
131
  a[aria-disabled="true"] .d2l-link-content {
132
- opacity: 0.74;
132
+ opacity: var(--d2l-theme-opacity-disabled-link);
133
133
  }
134
134
  a[aria-disabled="true"] d2l-icon {
135
- opacity: 0.64;
135
+ opacity: var(--d2l-theme-opacity-disabled-linkicon);
136
136
  }
137
137
 
138
138
  @media print {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.237.3",
3
+ "version": "3.237.5",
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",