@norges-domstoler/dds-components 0.0.0-dev-20240607104628 → 0.0.0-dev-20240610074922

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/dist/index.mjs CHANGED
@@ -183,6 +183,7 @@ var textColors = {
183
183
  textRequiredfield: "var(--dds-color-text-requiredfield)",
184
184
  textSubtle: "var(--dds-color-text-subtle)",
185
185
  textMedium: "var(--dds-color-text-medium)",
186
+ textOnNotification: "var(--dds-color-text-on-notification)",
186
187
  iconOnAction: "var(--dds-color-icon-on-action)",
187
188
  iconOnInfoDefault: "var(--dds-color-icon-on-info-default)",
188
189
  iconOnSuccessDefault: "var(--dds-color-icon-on-success-default)",
@@ -211,6 +212,7 @@ var textColorsArray = [
211
212
  "textRequiredfield",
212
213
  "textSubtle",
213
214
  "textMedium",
215
+ "textOnNotification",
214
216
  "iconOnAction",
215
217
  "iconOnInfoDefault",
216
218
  "iconOnSuccessDefault",
@@ -2081,10 +2083,6 @@ var Typography = forwardRef3(
2081
2083
  const { style: htmlPropsStyle, ...restHtmlProps } = htmlProps;
2082
2084
  const as = propAs ? propAs : getElementType(typographyType);
2083
2085
  const typographyCn = getTypographyCn(typographyType);
2084
- const styleVariables = {
2085
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2086
- ["--dds-typography-color"]: color && getTextColor(color)
2087
- };
2088
2086
  let relProp;
2089
2087
  let targetProp;
2090
2088
  let externalLinkProp;
@@ -2124,7 +2122,7 @@ var Typography = forwardRef3(
2124
2122
  style: {
2125
2123
  ...htmlPropsStyle,
2126
2124
  ...style,
2127
- ...styleVariables
2125
+ color: color && getTextColor(color)
2128
2126
  },
2129
2127
  rel: relProp,
2130
2128
  children: [