@norges-domstoler/dds-components 0.0.0-dev-20240404072551 → 0.0.0-dev-20240404104453

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.js CHANGED
@@ -12388,7 +12388,7 @@ var Container13 = import_styled_components81.default.label`
12388
12388
  }
12389
12389
  }
12390
12390
 
12391
- &:focus-within {
12391
+ input:enabled:focus-visible ~ ${CustomSelectionControl} {
12392
12392
  ${focusVisible}
12393
12393
  @media (prefers-reduced-motion: no-preference) {
12394
12394
  transition: ${focusVisibleTransitionValue};
@@ -12420,17 +12420,19 @@ var Container13 = import_styled_components81.default.label`
12420
12420
  }
12421
12421
 
12422
12422
  ${({ $error }) => $error && import_styled_components81.css`
12423
- &:hover input:enabled ~ ${CustomSelectionControl} {
12423
+ &:hover
12424
+ input:enabled:not(:focus-visible):not(:checked)
12425
+ ~ ${CustomSelectionControl} {
12424
12426
  background-color: ${selectionControl2.hover.danger.backgroundColor};
12425
12427
  box-shadow: ${selectionControl2.hover.danger.boxShadow};
12426
12428
  border-color: ${selectionControl2.hover.danger.borderColor};
12427
12429
  }
12428
- input
12430
+ input:not(:focus-visible)
12429
12431
  ~ ${CustomSelectionControl},
12430
- input:checked:enabled
12432
+ input:checked:enabled:not(:focus-visible)
12431
12433
  ~ ${CustomSelectionControl},
12432
12434
  &:hover
12433
- input:checked:enabled
12435
+ input:checked:enabled:not(:focus-visible)
12434
12436
  ~ ${CustomSelectionControl} {
12435
12437
  box-shadow: ${selectionControl2.danger.boxShadow};
12436
12438
  border-color: ${selectionControl2.danger.borderColor};