@norges-domstoler/dds-components 25.0.1 → 25.1.0

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.css CHANGED
@@ -3335,6 +3335,9 @@
3335
3335
  left: 50%;
3336
3336
  transform: translateX(-50%);
3337
3337
  }
3338
+ .dds-RequiredMarker-module__wrapper {
3339
+ color: var(--dds-color-text-requiredfield);
3340
+ }
3338
3341
  :where(.dds-AccordionBase-module__header-button) {
3339
3342
  -webkit-user-select: text;
3340
3343
  user-select: text;
@@ -3364,24 +3367,6 @@
3364
3367
  .dds-AccordionBase-module__body--hidden {
3365
3368
  display: none;
3366
3369
  }
3367
- .dds-RequiredMarker-module__wrapper {
3368
- color: var(--dds-color-text-requiredfield);
3369
- }
3370
- .dds-Backdrop-module__backdrop {
3371
- background-color: var(--dds-color-surface-backdrop-default);
3372
-
3373
- @media (prefers-reduced-motion: no-preference) {
3374
- transition: opacity var(--dds-motion-surface);
3375
- }
3376
- }
3377
-
3378
- .dds-Backdrop-module__backdrop--visible {
3379
- opacity: 1;
3380
- }
3381
-
3382
- .dds-Backdrop-module__backdrop--hidden {
3383
- opacity: 0;
3384
- }
3385
3370
  /* Primitives */
3386
3371
 
3387
3372
  .dds-layout-module__dds-p {
@@ -4515,6 +4500,29 @@
4515
4500
  --dds-r-j-self: var(--dds-r-xl-j-self);
4516
4501
  }
4517
4502
  }
4503
+ :where(.dds-surface-module__border-radius--button) {
4504
+ border-radius: var(--dds-border-radius-button);
4505
+ }
4506
+
4507
+ :where(.dds-surface-module__border-radius--surface) {
4508
+ border-radius: var(--dds-border-radius-surface);
4509
+ }
4510
+
4511
+ :where(.dds-surface-module__border-radius--tag) {
4512
+ border-radius: var(--dds-border-radius-tag);
4513
+ }
4514
+
4515
+ :where(.dds-surface-module__border-radius--input) {
4516
+ border-radius: var(--dds-border-radius-input);
4517
+ }
4518
+
4519
+ :where(.dds-surface-module__border-radius--rounded) {
4520
+ border-radius: var(--dds-border-radius-rounded);
4521
+ }
4522
+
4523
+ :where(.dds-surface-module__border-radius--0) {
4524
+ border-radius: 0;
4525
+ }
4518
4526
  .dds-Paper-module__background {
4519
4527
  background: var(--dds-paper-background);
4520
4528
  }
@@ -4535,64 +4543,103 @@
4535
4543
  :where(.dds-Paper-module__shadow--large) {
4536
4544
  box-shadow: var(--dds-shadow-large);
4537
4545
  }
4538
- :where(.dds-surface-module__border-radius--button) {
4539
- border-radius: var(--dds-border-radius-button);
4540
- }
4546
+ .dds-Backdrop-module__backdrop {
4547
+ background-color: var(--dds-color-surface-backdrop-default);
4541
4548
 
4542
- :where(.dds-surface-module__border-radius--surface) {
4543
- border-radius: var(--dds-border-radius-surface);
4549
+ @media (prefers-reduced-motion: no-preference) {
4550
+ transition: opacity var(--dds-motion-surface);
4551
+ }
4544
4552
  }
4545
4553
 
4546
- :where(.dds-surface-module__border-radius--tag) {
4547
- border-radius: var(--dds-border-radius-tag);
4554
+ .dds-Backdrop-module__backdrop--visible {
4555
+ opacity: 1;
4548
4556
  }
4549
4557
 
4550
- :where(.dds-surface-module__border-radius--input) {
4551
- border-radius: var(--dds-border-radius-input);
4558
+ .dds-Backdrop-module__backdrop--hidden {
4559
+ opacity: 0;
4552
4560
  }
4553
-
4554
- :where(.dds-surface-module__border-radius--rounded) {
4555
- border-radius: var(--dds-border-radius-rounded);
4561
+ .dds-TextOverflowEllipsis-module__wrapper {
4562
+ max-width: 100%;
4556
4563
  }
4557
4564
 
4558
- :where(.dds-surface-module__border-radius--0) {
4559
- border-radius: 0;
4565
+ .dds-TextOverflowEllipsis-module__inner {
4566
+ white-space: nowrap;
4567
+ overflow: hidden;
4568
+ text-overflow: ellipsis;
4560
4569
  }
4561
- .dds-DropdownItem-module__item {
4562
- box-sizing: border-box;
4563
- background-color: inherit;
4564
- text-decoration: none;
4565
-
4566
- &.dds-DropdownItem-module__default {
4567
- color: var(--dds-color-text-default);
4568
- }
4569
-
4570
- &.dds-DropdownItem-module__danger {
4571
- color: var(--dds-color-text-danger);
4572
- }
4570
+ .dds-focus-module__focused,
4571
+ .dds-focus-module__focusable:focus-visible,
4572
+ .dds-focus-module__focusable-focus:focus,
4573
+ .dds-focus-module__focusable-within:focus-within,
4574
+ .dds-focus-module__has-focusable-input:has(input:focus-visible),
4575
+ .dds-focus-module__focusable-sibling:focus-visible + .dds-focus-module__focus-styled-sibling {
4576
+ outline: var(--dds-focus-outline);
4577
+ outline-offset: var(--dds-focus-outline-offset);
4578
+ box-shadow: var(--dds-focus-box-shadow);
4573
4579
  }
4574
4580
 
4575
- .dds-DropdownItem-module__item--interactive {
4576
- text-align: left;
4581
+ .dds-focus-module__focusable--inset:focus-visible {
4582
+ outline: var(--dds-focus-outline);
4583
+ outline-offset: var(--dds-focus-outline-inset);
4584
+ box-shadow: var(--dds-focus-box-shadow);
4585
+ }
4586
+ .dds-Typography-module__container {
4577
4587
  -webkit-user-select: text;
4578
4588
  user-select: text;
4579
- border: none;
4580
- cursor: pointer;
4581
- outline: inherit;
4582
- width: 100%;
4589
+ }
4590
+ .dds-Icon-module__svg {
4591
+ display: inline-block;
4592
+ transition: fill var(--dds-motion-micro-state);
4593
+ flex-shrink: 0;
4594
+ }
4595
+ .dds-AnimatedChevronUpDown-module__svg {
4583
4596
  @media (prefers-reduced-motion: no-preference) {
4584
- transition: background-color var(--dds-motion-micro-state);
4597
+ --dds-chevron-transition: transform var(--dds-motion-chevron);
4585
4598
  }
4599
+ }
4586
4600
 
4587
- &:hover,
4588
- &:active {
4589
- background-color: var(--dds-color-surface-hover-default);
4590
- }
4601
+ .dds-AnimatedChevronUpDown-module__group {
4602
+ transition: var(--dds-chevron-transition);
4591
4603
  }
4592
4604
 
4593
- .dds-DropdownItem-module__item--loading {
4594
- cursor: not-allowed;
4595
- position: relative;
4605
+ .dds-AnimatedChevronUpDown-module__svg--up .dds-AnimatedChevronUpDown-module__group {
4606
+ transform: translateY(-3px);
4607
+ }
4608
+
4609
+ .dds-AnimatedChevronUpDown-module__svg--down .dds-AnimatedChevronUpDown-module__group {
4610
+ transform: translateY(3px);
4611
+ }
4612
+
4613
+ .dds-AnimatedChevronUpDown-module__left,
4614
+ .dds-AnimatedChevronUpDown-module__right {
4615
+ transition: var(--dds-chevron-transition);
4616
+ stroke-linecap: round;
4617
+ transform-origin: center;
4618
+ }
4619
+
4620
+ .dds-AnimatedChevronUpDown-module__svg--up .dds-AnimatedChevronUpDown-module__left {
4621
+ transform: rotate(-45deg);
4622
+ }
4623
+ .dds-AnimatedChevronUpDown-module__svg--down .dds-AnimatedChevronUpDown-module__left {
4624
+ transform: rotate(45deg);
4625
+ }
4626
+
4627
+ .dds-AnimatedChevronUpDown-module__svg--up .dds-AnimatedChevronUpDown-module__right {
4628
+ transform: rotate(45deg);
4629
+ }
4630
+ .dds-AnimatedChevronUpDown-module__svg--down .dds-AnimatedChevronUpDown-module__right {
4631
+ transform: rotate(-45deg);
4632
+ }
4633
+ .dds-Label-module__read-only {
4634
+ display: flex;
4635
+ }
4636
+
4637
+ .dds-Label-module__read-only__icon {
4638
+ align-self: center;
4639
+ flex-shrink: 0;
4640
+ margin-inline-end: var(--dds-spacing-x0-125);
4641
+ width: 1.25em;
4642
+ height: 1.25em;
4596
4643
  }
4597
4644
  .dds-Badge-module__container {
4598
4645
  border-radius: var(--dds-border-radius-rounded);
@@ -4730,64 +4777,41 @@
4730
4777
  transform: scale(0.1);
4731
4778
  }
4732
4779
  }
4733
- .dds-focus-module__focused,
4734
- .dds-focus-module__focusable:focus-visible,
4735
- .dds-focus-module__focusable-focus:focus,
4736
- .dds-focus-module__focusable-within:focus-within,
4737
- .dds-focus-module__has-focusable-input:has(input:focus-visible),
4738
- .dds-focus-module__focusable-sibling:focus-visible + .dds-focus-module__focus-styled-sibling {
4739
- outline: var(--dds-focus-outline);
4740
- outline-offset: var(--dds-focus-outline-offset);
4741
- box-shadow: var(--dds-focus-box-shadow);
4742
- }
4780
+ .dds-DropdownItem-module__item {
4781
+ box-sizing: border-box;
4782
+ background-color: inherit;
4783
+ text-decoration: none;
4743
4784
 
4744
- .dds-focus-module__focusable--inset:focus-visible {
4745
- outline: var(--dds-focus-outline);
4746
- outline-offset: var(--dds-focus-outline-inset);
4747
- box-shadow: var(--dds-focus-box-shadow);
4748
- }
4749
- .dds-Icon-module__svg {
4750
- display: inline-block;
4751
- transition: fill var(--dds-motion-micro-state);
4752
- flex-shrink: 0;
4753
- }
4754
- .dds-AnimatedChevronUpDown-module__svg {
4755
- @media (prefers-reduced-motion: no-preference) {
4756
- --dds-chevron-transition: transform var(--dds-motion-chevron);
4785
+ &.dds-DropdownItem-module__default {
4786
+ color: var(--dds-color-text-default);
4757
4787
  }
4758
- }
4759
-
4760
- .dds-AnimatedChevronUpDown-module__group {
4761
- transition: var(--dds-chevron-transition);
4762
- }
4763
-
4764
- .dds-AnimatedChevronUpDown-module__svg--up .dds-AnimatedChevronUpDown-module__group {
4765
- transform: translateY(-3px);
4766
- }
4767
4788
 
4768
- .dds-AnimatedChevronUpDown-module__svg--down .dds-AnimatedChevronUpDown-module__group {
4769
- transform: translateY(3px);
4789
+ &.dds-DropdownItem-module__danger {
4790
+ color: var(--dds-color-text-danger);
4791
+ }
4770
4792
  }
4771
4793
 
4772
- .dds-AnimatedChevronUpDown-module__left,
4773
- .dds-AnimatedChevronUpDown-module__right {
4774
- transition: var(--dds-chevron-transition);
4775
- stroke-linecap: round;
4776
- transform-origin: center;
4777
- }
4794
+ .dds-DropdownItem-module__item--interactive {
4795
+ text-align: left;
4796
+ -webkit-user-select: text;
4797
+ user-select: text;
4798
+ border: none;
4799
+ cursor: pointer;
4800
+ outline: inherit;
4801
+ width: 100%;
4802
+ @media (prefers-reduced-motion: no-preference) {
4803
+ transition: background-color var(--dds-motion-micro-state);
4804
+ }
4778
4805
 
4779
- .dds-AnimatedChevronUpDown-module__svg--up .dds-AnimatedChevronUpDown-module__left {
4780
- transform: rotate(-45deg);
4781
- }
4782
- .dds-AnimatedChevronUpDown-module__svg--down .dds-AnimatedChevronUpDown-module__left {
4783
- transform: rotate(45deg);
4806
+ &:hover,
4807
+ &:active {
4808
+ background-color: var(--dds-color-surface-hover-default);
4809
+ }
4784
4810
  }
4785
4811
 
4786
- .dds-AnimatedChevronUpDown-module__svg--up .dds-AnimatedChevronUpDown-module__right {
4787
- transform: rotate(45deg);
4788
- }
4789
- .dds-AnimatedChevronUpDown-module__svg--down .dds-AnimatedChevronUpDown-module__right {
4790
- transform: rotate(-45deg);
4812
+ .dds-DropdownItem-module__item--loading {
4813
+ cursor: not-allowed;
4814
+ position: relative;
4791
4815
  }
4792
4816
  .dds-ThemeProvider-module__global-variables {
4793
4817
  /*Default text colors*/
@@ -4887,34 +4911,18 @@
4887
4911
  .dds-BackLink-module__icon {
4888
4912
  margin-right: var(--dds-spacing-x0-25);
4889
4913
  }
4890
- .dds-TextOverflowEllipsis-module__wrapper {
4891
- max-width: 100%;
4914
+ .dds-common-module__badge--on-corner {
4915
+ position: absolute;
4916
+ top: 0;
4917
+ right: 0;
4918
+ transform: translate(50%, -50%);
4892
4919
  }
4893
4920
 
4894
- .dds-TextOverflowEllipsis-module__inner {
4895
- white-space: nowrap;
4896
- overflow: hidden;
4897
- text-overflow: ellipsis;
4921
+ .dds-common-module__button:active:enabled {
4922
+ transform: scale(0.95);
4898
4923
  }
4899
- .dds-Typography-module__container {
4900
- -webkit-user-select: text;
4901
- user-select: text;
4902
- }
4903
- .dds-Label-module__read-only {
4904
- display: flex;
4905
- }
4906
-
4907
- .dds-Label-module__read-only__icon {
4908
- align-self: center;
4909
- flex-shrink: 0;
4910
- margin-inline-end: var(--dds-spacing-x0-125);
4911
- width: 1.25em;
4912
- height: 1.25em;
4913
- }
4914
- .dds-Breadcrumbs-module__icon {
4915
- color: var(--dds-color-icon-link);
4916
- }
4917
- :where(.dds-Button-module__button) {
4924
+ :where(.dds-Button-module__button) {
4925
+ box-sizing: border-box;
4918
4926
  -webkit-user-select: text;
4919
4927
  user-select: text;
4920
4928
  display: inline-flex;
@@ -5138,16 +5146,6 @@
5138
5146
  color: var(--dds-color-text-danger);
5139
5147
  }
5140
5148
  }
5141
- .dds-common-module__badge--on-corner {
5142
- position: absolute;
5143
- top: 0;
5144
- right: 0;
5145
- transform: translate(50%, -50%);
5146
- }
5147
-
5148
- .dds-common-module__button:active:enabled {
5149
- transform: scale(0.95);
5150
- }
5151
5149
  .dds-OverflowMenu-module__container {
5152
5150
  box-sizing: border-box;
5153
5151
  }
@@ -5347,6 +5345,9 @@
5347
5345
  .dds-Divider-module__divider--on-inverse {
5348
5346
  color: var(--dds-color-border-inverse);
5349
5347
  }
5348
+ .dds-Breadcrumbs-module__icon {
5349
+ color: var(--dds-color-icon-link);
5350
+ }
5350
5351
  .dds-ButtonGroup-module__group > *:focus-visible {
5351
5352
  position: relative;
5352
5353
  z-index: var(--dds-zindex-absolute-element);
@@ -5678,89 +5679,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5678
5679
  .dds-SelectionControl-module__selection-control--radio {
5679
5680
  border-radius: var(--dds-border-radius-rounded);
5680
5681
  }
5681
- .dds-Chip-module__container {
5682
- position: relative;
5683
- color: inherit;
5684
- @media (prefers-reduced-motion: no-preference) {
5685
- transition:
5686
- box-shadow var(--dds-motion-micro-state),
5687
- border-color var(--dds-motion-micro-state),
5688
- background-color var(--dds-motion-micro-state),
5689
- color var(--dds-motion-micro-state),
5690
- transform var(--dds-motion-micro-state),
5691
- var(--dds-focus-transition);
5692
- }
5693
- &:is(button),
5694
- button {
5695
- cursor: pointer;
5696
- }
5697
-
5698
- &:is(button) {
5699
- background: var(--dds-color-surface-default);
5700
- border-color: var(--dds-color-border-subtle);
5701
-
5702
- &:hover {
5703
- background: var(--dds-color-surface-hover-default);
5704
- border-color: var(--dds-color-border-action-hover);
5705
- }
5706
- }
5707
-
5708
- button {
5709
- margin-inline-start: var(--dds-spacing-x0-125);
5710
- }
5711
- }
5712
-
5713
- .dds-Chip-module__selection-control {
5714
- background: var(--dds-color-surface-default);
5715
-
5716
- &:hover:has(input:enabled) {
5717
- border-color: var(--dds-color-border-action-hover);
5718
- }
5719
-
5720
- &:has(input:disabled) {
5721
- color: var(--dds-color-text-subtle);
5722
- background: var(--dds-color-surface-field-disabled);
5723
- }
5724
- }
5725
-
5726
- .dds-Chip-module__removable,
5727
- .dds-Chip-module__selection-control:has(input:checked) {
5728
- background: var(--dds-color-surface-selected-default);
5729
- }
5730
-
5731
- .dds-Chip-module__selection-control-spacing {
5732
- padding-left: var(--dds-spacing-chip-sl-left);
5733
- padding-right: var(--dds-spacing-chip-sl-right);
5734
-
5735
- & > span {
5736
- --dds-spacing-sl-compact: var(--dds-spacing-x0-125);
5737
- left: var(--dds-spacing-chip-sl-marker-left);
5738
- margin: var(--dds-spacing-sl-compact);
5739
- height: calc(
5740
- var(--dds-size-icon-component) - 2 * var(--dds-spacing-sl-compact)
5741
- );
5742
- width: calc(
5743
- var(--dds-size-icon-component) - 2 * var(--dds-spacing-sl-compact)
5744
- );
5745
- }
5746
- }
5747
-
5748
- .dds-Chip-module__selection-control--no-indicator {
5749
- &:hover {
5750
- background: var(--dds-color-surface-hover-default);
5751
- }
5752
- &:has(input:checked) {
5753
- color: var(--dds-color-text-on-action);
5754
- background: var(--dds-color-surface-action-resting);
5755
- border-color: var(--dds-color-border-action-default);
5756
- &:hover {
5757
- background: var(--dds-color-surface-action-hover);
5758
- }
5759
- }
5760
- & > span {
5761
- display: none;
5762
- }
5763
- }
5764
5682
  .dds-Input-module__container {
5765
5683
  position: relative;
5766
5684
  }
@@ -6098,6 +6016,99 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6098
6016
  :where(.dds-Input-module__input-group__absolute-el--xsmall) {
6099
6017
  left: var(--dds-input-absolute-el-left-xsmall);
6100
6018
  }
6019
+ .dds-InlineButton-module__button {
6020
+ display: inline;
6021
+ vertical-align: middle;
6022
+ &:focus-visible {
6023
+ z-index: var(--dds-zindex-absolute-element);
6024
+ }
6025
+ &:has(svg) {
6026
+ line-height: 0;
6027
+ }
6028
+ }
6029
+ .dds-Chip-module__container {
6030
+ position: relative;
6031
+ color: inherit;
6032
+ @media (prefers-reduced-motion: no-preference) {
6033
+ transition:
6034
+ box-shadow var(--dds-motion-micro-state),
6035
+ border-color var(--dds-motion-micro-state),
6036
+ background-color var(--dds-motion-micro-state),
6037
+ color var(--dds-motion-micro-state),
6038
+ transform var(--dds-motion-micro-state),
6039
+ var(--dds-focus-transition);
6040
+ }
6041
+ &:is(button),
6042
+ button {
6043
+ cursor: pointer;
6044
+ }
6045
+
6046
+ &:is(button) {
6047
+ background: var(--dds-color-surface-default);
6048
+ border-color: var(--dds-color-border-subtle);
6049
+
6050
+ &:hover {
6051
+ background: var(--dds-color-surface-hover-default);
6052
+ border-color: var(--dds-color-border-action-hover);
6053
+ }
6054
+ }
6055
+
6056
+ button {
6057
+ margin-inline-start: var(--dds-spacing-x0-125);
6058
+ }
6059
+ }
6060
+
6061
+ .dds-Chip-module__selection-control {
6062
+ background: var(--dds-color-surface-default);
6063
+
6064
+ &:hover:has(input:enabled) {
6065
+ border-color: var(--dds-color-border-action-hover);
6066
+ }
6067
+
6068
+ &:has(input:disabled) {
6069
+ color: var(--dds-color-text-subtle);
6070
+ background: var(--dds-color-surface-field-disabled);
6071
+ }
6072
+ }
6073
+
6074
+ .dds-Chip-module__removable,
6075
+ .dds-Chip-module__selection-control:has(input:checked) {
6076
+ background: var(--dds-color-surface-selected-default);
6077
+ }
6078
+
6079
+ .dds-Chip-module__selection-control-spacing {
6080
+ padding-left: var(--dds-spacing-chip-sl-left);
6081
+ padding-right: var(--dds-spacing-chip-sl-right);
6082
+
6083
+ & > span {
6084
+ --dds-spacing-sl-compact: var(--dds-spacing-x0-125);
6085
+ left: var(--dds-spacing-chip-sl-marker-left);
6086
+ margin: var(--dds-spacing-sl-compact);
6087
+ height: calc(
6088
+ var(--dds-size-icon-component) - 2 * var(--dds-spacing-sl-compact)
6089
+ );
6090
+ width: calc(
6091
+ var(--dds-size-icon-component) - 2 * var(--dds-spacing-sl-compact)
6092
+ );
6093
+ }
6094
+ }
6095
+
6096
+ .dds-Chip-module__selection-control--no-indicator {
6097
+ &:hover {
6098
+ background: var(--dds-color-surface-hover-default);
6099
+ }
6100
+ &:has(input:checked) {
6101
+ color: var(--dds-color-text-on-action);
6102
+ background: var(--dds-color-surface-action-resting);
6103
+ border-color: var(--dds-color-border-action-default);
6104
+ &:hover {
6105
+ background: var(--dds-color-surface-action-hover);
6106
+ }
6107
+ }
6108
+ & > span {
6109
+ display: none;
6110
+ }
6111
+ }
6101
6112
  .dds-CookieBanner-module__container:focus-visible {
6102
6113
  outline: none;
6103
6114
  }
@@ -6277,72 +6288,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6277
6288
  .dds-DescriptionList-module__group {
6278
6289
  margin: var(--dds-spacing-x2);
6279
6290
  }
6280
- .dds-DetailList-module__list {
6281
- display: table;
6282
- }
6283
-
6284
- .dds-DetailList-module__list--striped-with-bp {
6285
- .dds-DetailList-module__row {
6286
- &:nth-of-type(4n-1),
6287
- &:nth-of-type(4n) {
6288
- background-color: var(--dds-color-surface-default);
6289
- }
6290
-
6291
- &:nth-of-type(4n-3),
6292
- &:nth-of-type(4n-2) {
6293
- background-color: var(--dds-color-surface-subtle);
6294
- }
6295
- }
6296
- }
6297
-
6298
- .dds-DetailList-module__list--small {
6299
- dt,
6300
- dd {
6301
- padding: var(--dds-spacing-x0-5);
6302
- }
6303
- }
6304
-
6305
- .dds-DetailList-module__list--medium {
6306
- dt,
6307
- dd {
6308
- padding: var(--dds-spacing-x0-75);
6309
- }
6310
- }
6311
-
6312
- .dds-DetailList-module__list--large {
6313
- dt,
6314
- dd {
6315
- padding-block: var(--dds-spacing-x1-5);
6316
- padding-inline: var(--dds-spacing-x0-75);
6317
- }
6318
- }
6319
-
6320
- .dds-DetailList-module__column {
6321
- dt,
6322
- dd {
6323
- margin-inline-start: 0;
6324
- text-align: left;
6325
- }
6326
- dt {
6327
- padding-block-end: var(--dds-spacing-x0-125);
6328
- }
6329
-
6330
- dd:not(:last-of-type) {
6331
- padding-block: var(--dds-spacing-x0-125);
6332
- }
6333
-
6334
- dd:last-of-type {
6335
- padding-block-start: var(--dds-spacing-x0-125);
6336
- }
6337
- }
6338
-
6339
- .dds-DetailList-module__cell {
6340
- display: table-cell;
6341
- }
6342
-
6343
- .dds-DetailList-module__term {
6344
- font-weight: var(--dds-font-weight-bold);
6345
- }
6346
6291
  .dds-Table-module__wrapper {
6347
6292
  width: 100%;
6348
6293
  }
@@ -6413,16 +6358,23 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6413
6358
  }
6414
6359
 
6415
6360
  .dds-Table-module__table--collapsible--striped {
6416
- .dds-Table-module__row--body {
6417
- &:nth-of-type(4n),
6418
- &:nth-of-type(4n-1) {
6419
- background-color: var(--dds-color-surface-subtle);
6420
- }
6361
+ :nth-child(4n of .dds-Table-module__row--body.dds-Table-module__standard-row),
6362
+ :nth-child(4n-1 of .dds-Table-module__row--body.dds-Table-module__standard-row) {
6363
+ background-color: var(--dds-color-surface-subtle);
6364
+ }
6365
+ :nth-child(4n-2 of .dds-Table-module__row--body.dds-Table-module__standard-row),
6366
+ :nth-child(4n-3 of .dds-Table-module__row--body.dds-Table-module__standard-row) {
6367
+ background-color: var(--dds-color-surface-default);
6368
+ }
6421
6369
 
6422
- &:nth-of-type(4n-2),
6423
- &:nth-of-type(4n-3) {
6424
- background-color: var(--dds-color-surface-default);
6425
- }
6370
+ :nth-child(4n of .dds-Table-module__row--body.dds-Table-module__standard-row) + .dds-Table-module__row--body.dds-Table-module__dl-row,
6371
+ :nth-child(4n-1 of .dds-Table-module__row--body.dds-Table-module__standard-row) + .dds-Table-module__row--body.dds-Table-module__dl-row {
6372
+ background-color: var(--dds-color-surface-subtle);
6373
+ }
6374
+
6375
+ :nth-child(4n-2 of .dds-Table-module__row--body.dds-Table-module__standard-row) + .dds-Table-module__row--body.dds-Table-module__dl-row,
6376
+ :nth-child(4n-3 of .dds-Table-module__row--body.dds-Table-module__standard-row) + .dds-Table-module__row--body.dds-Table-module__dl-row {
6377
+ background-color: var(--dds-color-surface-default);
6426
6378
  }
6427
6379
  }
6428
6380
 
@@ -6439,16 +6391,25 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6439
6391
  }
6440
6392
 
6441
6393
  .dds-Table-module__table--collapsible--striped.dds-Table-module__table--small {
6442
- .dds-Table-module__row--body {
6443
- &:nth-of-type(4n-2),
6444
- &:nth-of-type(4n-3) {
6445
- background-color: var(--dds-color-surface-subtle);
6446
- }
6394
+ :nth-child(4n of .dds-Table-module__row--body.dds-Table-module__standard-row),
6395
+ :nth-child(4n-1 of .dds-Table-module__row--body.dds-Table-module__standard-row),
6396
+ :nth-child(even of .dds-Table-module__row--body.dds-Table-module__dl-row) {
6397
+ background-color: var(--dds-color-surface-default);
6398
+ }
6399
+ :nth-child(4n-2 of .dds-Table-module__row--body.dds-Table-module__standard-row),
6400
+ :nth-child(4n-3 of .dds-Table-module__row--body.dds-Table-module__standard-row),
6401
+ :nth-child(odd of .dds-Table-module__row--body.dds-Table-module__dl-row) {
6402
+ background-color: var(--dds-color-surface-subtle);
6403
+ }
6447
6404
 
6448
- &:nth-of-type(4n),
6449
- &:nth-of-type(4n-1) {
6450
- background-color: var(--dds-color-surface-default);
6451
- }
6405
+ :nth-child(4n of .dds-Table-module__row--body.dds-Table-module__standard-row) + .dds-Table-module__row--body.dds-Table-module__dl-row,
6406
+ :nth-child(4n-1 of .dds-Table-module__row--body.dds-Table-module__standard-row) + .dds-Table-module__row--body.dds-Table-module__dl-row {
6407
+ background-color: var(--dds-color-surface-default);
6408
+ }
6409
+
6410
+ :nth-child(4n-2 of .dds-Table-module__row--body.dds-Table-module__standard-row) + .dds-Table-module__row--body.dds-Table-module__dl-row,
6411
+ :nth-child(4n-3 of .dds-Table-module__row--body.dds-Table-module__standard-row) + .dds-Table-module__row--body.dds-Table-module__dl-row {
6412
+ background-color: var(--dds-color-surface-subtle);
6452
6413
  }
6453
6414
  }
6454
6415
 
@@ -6539,6 +6500,72 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6539
6500
  vertical-align: middle;
6540
6501
  }
6541
6502
  }
6503
+ .dds-DetailList-module__list {
6504
+ display: table;
6505
+ }
6506
+
6507
+ .dds-DetailList-module__list--striped-with-bp {
6508
+ .dds-DetailList-module__row {
6509
+ &:nth-of-type(4n-1),
6510
+ &:nth-of-type(4n) {
6511
+ background-color: var(--dds-color-surface-default);
6512
+ }
6513
+
6514
+ &:nth-of-type(4n-3),
6515
+ &:nth-of-type(4n-2) {
6516
+ background-color: var(--dds-color-surface-subtle);
6517
+ }
6518
+ }
6519
+ }
6520
+
6521
+ .dds-DetailList-module__list--small {
6522
+ dt,
6523
+ dd {
6524
+ padding: var(--dds-spacing-x0-5);
6525
+ }
6526
+ }
6527
+
6528
+ .dds-DetailList-module__list--medium {
6529
+ dt,
6530
+ dd {
6531
+ padding: var(--dds-spacing-x0-75);
6532
+ }
6533
+ }
6534
+
6535
+ .dds-DetailList-module__list--large {
6536
+ dt,
6537
+ dd {
6538
+ padding-block: var(--dds-spacing-x1-5);
6539
+ padding-inline: var(--dds-spacing-x0-75);
6540
+ }
6541
+ }
6542
+
6543
+ .dds-DetailList-module__column {
6544
+ dt,
6545
+ dd {
6546
+ margin-inline-start: 0;
6547
+ text-align: left;
6548
+ }
6549
+ dt {
6550
+ padding-block-end: var(--dds-spacing-x0-125);
6551
+ }
6552
+
6553
+ dd:not(:last-of-type) {
6554
+ padding-block: var(--dds-spacing-x0-125);
6555
+ }
6556
+
6557
+ dd:last-of-type {
6558
+ padding-block-start: var(--dds-spacing-x0-125);
6559
+ }
6560
+ }
6561
+
6562
+ .dds-DetailList-module__cell {
6563
+ display: table-cell;
6564
+ }
6565
+
6566
+ .dds-DetailList-module__term {
6567
+ font-weight: var(--dds-font-weight-bold);
6568
+ }
6542
6569
  .dds-Drawer-module__container {
6543
6570
  /* Justering på spacing slik at fokusmarkering osv. ikke skjules ved overflow */
6544
6571
  --dds-drawer-content-container-padding: var(--dds-spacing-x0-25);
@@ -6592,9 +6619,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6592
6619
  margin-left: auto;
6593
6620
  margin-top: calc(-1 * var(--dds-spacing-x0-125));
6594
6621
  }
6595
- .dds-ErrorSummary-module__container {
6596
- border: 2px solid var(--dds-color-border-danger);
6597
- }
6598
6622
  .dds-List-module__list {
6599
6623
  color: var(--dds-color-text-body);
6600
6624
  margin: var(--dds-spacing-x1) 0;
@@ -6659,6 +6683,9 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6659
6683
  .dds-List-module__li {
6660
6684
  margin-bottom: var(--dds-font-paragraph-spacing-list);
6661
6685
  }
6686
+ .dds-ErrorSummary-module__container {
6687
+ border: 2px solid var(--dds-color-border-danger);
6688
+ }
6662
6689
  .dds-FavStar-module__container {
6663
6690
  position: relative;
6664
6691
  cursor: pointer;
@@ -6723,6 +6750,15 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6723
6750
  .dds-FavStar-module__icon--invisible {
6724
6751
  opacity: 0;
6725
6752
  }
6753
+ :where(.dds-CharCounter-module__container) {
6754
+ margin-left: auto;
6755
+ }
6756
+ .dds-TextArea-module__textarea {
6757
+ height: auto;
6758
+ resize: vertical;
6759
+ vertical-align: bottom;
6760
+ padding-bottom: var(--dds-spacing-x0-5);
6761
+ }
6726
6762
  .dds-Feedback-module__rating-container {
6727
6763
  display: flex;
6728
6764
  gap: var(--dds-spacing-x0-5);
@@ -6760,15 +6796,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6760
6796
  var(--dds-focus-transition);
6761
6797
  }
6762
6798
  }
6763
- .dds-TextArea-module__textarea {
6764
- height: auto;
6765
- resize: vertical;
6766
- vertical-align: bottom;
6767
- padding-bottom: var(--dds-spacing-x0-5);
6768
- }
6769
- :where(.dds-CharCounter-module__container) {
6770
- margin-left: auto;
6771
- }
6772
6799
  .dds-Fieldset-module__container {
6773
6800
  padding-block: 0;
6774
6801
  padding-inline: 0;
@@ -6837,51 +6864,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6837
6864
  .dds-FormSummary-module__dd .dds-FormSummary-module__field {
6838
6865
  padding-left: var(--dds-spacing-x0-75);
6839
6866
  }
6840
- .dds-GlobalMessage-module__container {
6841
- border-bottom: 2px solid;
6842
- box-sizing: border-box;
6843
- }
6844
-
6845
- .dds-GlobalMessage-module__container--info {
6846
- border-color: var(--dds-color-border-info);
6847
- background-color: var(--dds-color-surface-info-default);
6848
-
6849
- .dds-GlobalMessage-module__icon {
6850
- color: var(--dds-color-icon-on-info-default);
6851
- }
6852
- }
6853
-
6854
- .dds-GlobalMessage-module__container--danger {
6855
- border-color: var(--dds-color-border-danger);
6856
- background-color: var(--dds-color-surface-danger-default);
6857
-
6858
- .dds-GlobalMessage-module__icon {
6859
- color: var(--dds-color-icon-on-danger-default);
6860
- }
6861
- }
6862
-
6863
- .dds-GlobalMessage-module__container--warning {
6864
- border-color: var(--dds-color-border-warning);
6865
- background-color: var(--dds-color-surface-warning-default);
6866
-
6867
- .dds-GlobalMessage-module__icon {
6868
- color: var(--dds-color-icon-on-warning-default);
6869
- }
6870
- }
6871
-
6872
- .dds-GlobalMessage-module__icon {
6873
- margin-right: var(--dds-spacing-x0-75);
6874
- }
6875
- .dds-InlineButton-module__button {
6876
- display: inline;
6877
- vertical-align: middle;
6878
- &:focus-visible {
6879
- z-index: var(--dds-zindex-absolute-element);
6880
- }
6881
- &:has(svg) {
6882
- line-height: 0;
6883
- }
6884
- }
6885
6867
  .dds-InlineEdit-module__inline-input {
6886
6868
  width: 100%;
6887
6869
  border-width: 1px;
@@ -7002,33 +6984,21 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
7002
6984
  .dds-InternalHeader-module__context-menu {
7003
6985
  max-height: calc(100vh - 110px);
7004
6986
  }
6987
+ .dds-MessageBase-module__container {
6988
+ background-color: var(--dds-color-message-background);
6989
+ & > svg {
6990
+ color: var(--dds-color-message-icon);
6991
+ }
6992
+ }
6993
+ .dds-GlobalMessage-module__container {
6994
+ border-bottom: 2px solid var(--dds-color-message-border);
6995
+ box-sizing: border-box;
6996
+ }
7005
6997
  .dds-LocalMessage-module__container {
7006
- border: 1px solid;
6998
+ border: 1px solid var(--dds-color-message-border);
7007
6999
  box-sizing: border-box;
7008
7000
  border-radius: var(--dds-border-radius-surface);
7009
7001
  }
7010
-
7011
- .dds-LocalMessage-module__container--info {
7012
- border-color: var(--dds-color-border-info);
7013
- background-color: var(--dds-color-surface-info-default);
7014
- }
7015
- .dds-LocalMessage-module__container--warning {
7016
- border-color: var(--dds-color-border-warning);
7017
- background-color: var(--dds-color-surface-warning-default);
7018
- }
7019
- .dds-LocalMessage-module__container--danger {
7020
- border-color: var(--dds-color-border-danger);
7021
- background-color: var(--dds-color-surface-danger-default);
7022
- }
7023
- .dds-LocalMessage-module__container--success {
7024
- border-color: var(--dds-color-border-success);
7025
- background-color: var(--dds-color-surface-success-default);
7026
- }
7027
-
7028
- .dds-LocalMessage-module__container--tips {
7029
- border-color: var(--dds-color-border-info);
7030
- background-color: var(--dds-color-surface-info-default);
7031
- }
7032
7002
  .dds-Modal-module__container {
7033
7003
  /* Justering på spacing slik at fokusmarkering osv. ikke skjules ved overflow */
7034
7004
  --dds-modal-content-padding: var(--dds-spacing-x0-25);
@@ -7076,10 +7046,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
7076
7046
  height: 100%;
7077
7047
  object-fit: contain;
7078
7048
  }
7079
- .dds-Pagination-module__truncation-icon {
7080
- color: var(--dds-color-icon-medium);
7081
- min-width: calc(1ch + (2 * var(--dds-spacing-x0-75)));
7082
- }
7083
7049
  .dds-Select-module__container--disabled {
7084
7050
  cursor: not-allowed;
7085
7051
  }
@@ -7169,6 +7135,10 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
7169
7135
  background-color: var(--dds-color-surface-field-disabled);
7170
7136
  }
7171
7137
  }
7138
+ .dds-Pagination-module__truncation-icon {
7139
+ color: var(--dds-color-icon-medium);
7140
+ min-width: calc(1ch + (2 * var(--dds-spacing-x0-75)));
7141
+ }
7172
7142
  .dds-PhoneInput-module__inputs-container {
7173
7143
  .dds-PhoneInput-module__input {
7174
7144
  border-top-left-radius: 0;