@norges-domstoler/dds-components 0.0.0-dev-20260821101533 → 0.0.0-dev-20260825082236
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.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +6 -3
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9334,7 +9334,7 @@ const getCustomStyles = (size, hasError, isReadOnly) => ({
|
|
|
9334
9334
|
zIndex: 100,
|
|
9335
9335
|
transition: "var(--dds-motion-surface)",
|
|
9336
9336
|
border: "1px solid var(--dds-color-border-default)",
|
|
9337
|
-
backgroundColor: "var(--dds-color-surface-default)",
|
|
9337
|
+
backgroundColor: "var(--dds-color-surface-paper-default)",
|
|
9338
9338
|
borderRadius: "var(--dds-border-radius-surface)",
|
|
9339
9339
|
marginBlock: "var(--dds-spacing-x0-25)"
|
|
9340
9340
|
}),
|
|
@@ -9364,11 +9364,15 @@ const getCustomStyles = (size, hasError, isReadOnly) => ({
|
|
|
9364
9364
|
gap: "var(--dds-spacing-x0-25)",
|
|
9365
9365
|
padding: "var(--dds-spacing-x0-75)",
|
|
9366
9366
|
borderRadius: "var(--dds-border-radius-surface)",
|
|
9367
|
-
backgroundColor: "
|
|
9367
|
+
backgroundColor: "inherit",
|
|
9368
9368
|
...typography.option[size],
|
|
9369
9369
|
color: "var(--dds-color-text-default)",
|
|
9370
9370
|
"@media (prefers-reduced-motion: no-preference)": { transition: "color var(--dds-motion-micro-state), background-color var(--dds-motion-micro-state)" },
|
|
9371
|
-
|
|
9371
|
+
"&:active": { backgroundColor: "inherit" },
|
|
9372
|
+
...state.isSelected && {
|
|
9373
|
+
backgroundColor: "var(--dds-color-surface-selected-default)",
|
|
9374
|
+
"&:active": { backgroundColor: "var(--dds-color-surface-selected-default)" }
|
|
9375
|
+
},
|
|
9372
9376
|
...state.isFocused && {
|
|
9373
9377
|
outline: "var(--dds-color-border-action-hover) 2px solid",
|
|
9374
9378
|
outlineOffset: "calc(var(--dds-spacing-x0-125) * -1)"
|