@digdir/designsystemet-css 0.9.1-alpha.2 → 0.10.0-alpha.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.
Files changed (79) hide show
  1. package/accordion.css +23 -7
  2. package/alert.css +1 -1
  3. package/box.css +3 -3
  4. package/button.css +24 -68
  5. package/card.css +74 -44
  6. package/checkbox.css +26 -29
  7. package/chip.css +2 -2
  8. package/combobox.css +17 -4
  9. package/dist/accordion.css +1 -1
  10. package/dist/alert.css +1 -1
  11. package/dist/box.css +1 -1
  12. package/dist/button.css +1 -1
  13. package/dist/card.css +1 -1
  14. package/dist/checkbox.css +1 -1
  15. package/dist/chip.css +1 -1
  16. package/dist/combobox.css +1 -1
  17. package/dist/divider.css +1 -1
  18. package/dist/dropdownmenu.css +1 -1
  19. package/dist/error-message.css +1 -1
  20. package/dist/error-summary.css +1 -1
  21. package/dist/fieldset.css +1 -1
  22. package/dist/heading.css +1 -1
  23. package/dist/helptext.css +1 -1
  24. package/dist/index.css +1 -1
  25. package/dist/ingress.css +1 -1
  26. package/dist/label.css +1 -1
  27. package/dist/link.css +1 -1
  28. package/dist/list.css +1 -1
  29. package/dist/modal.css +1 -1
  30. package/dist/native-select.css +1 -1
  31. package/dist/pagination.css +1 -1
  32. package/dist/paragraph.css +1 -1
  33. package/dist/popover.css +1 -1
  34. package/dist/radio.css +1 -1
  35. package/dist/search.css +1 -1
  36. package/dist/skeleton.css +1 -1
  37. package/dist/skiplink.css +1 -1
  38. package/dist/spinner.css +1 -1
  39. package/dist/switch.css +1 -1
  40. package/dist/table.css +1 -1
  41. package/dist/tabs.css +1 -1
  42. package/dist/tag.css +1 -1
  43. package/dist/textarea.css +1 -1
  44. package/dist/textfield.css +1 -1
  45. package/dist/togglegroup.css +1 -1
  46. package/dist/tooltip.css +1 -1
  47. package/dist/utils.css +1 -1
  48. package/divider.css +1 -1
  49. package/dropdownmenu.css +1 -1
  50. package/error-message.css +1 -1
  51. package/error-summary.css +1 -1
  52. package/fieldset.css +3 -3
  53. package/heading.css +1 -1
  54. package/helptext.css +1 -1
  55. package/index.css +5 -5
  56. package/ingress.css +1 -1
  57. package/label.css +1 -1
  58. package/link.css +3 -3
  59. package/list.css +1 -1
  60. package/modal.css +1 -1
  61. package/native-select.css +26 -9
  62. package/package.json +2 -2
  63. package/pagination.css +1 -1
  64. package/paragraph.css +1 -1
  65. package/popover.css +4 -1
  66. package/radio.css +21 -25
  67. package/search.css +5 -3
  68. package/skeleton.css +1 -1
  69. package/skiplink.css +1 -1
  70. package/spinner.css +3 -3
  71. package/switch.css +20 -20
  72. package/table.css +1 -1
  73. package/tabs.css +7 -2
  74. package/tag.css +4 -4
  75. package/textarea.css +6 -6
  76. package/textfield.css +6 -4
  77. package/togglegroup.css +3 -2
  78. package/tooltip.css +3 -3
  79. package/utils.css +3 -3
package/textarea.css CHANGED
@@ -1,10 +1,10 @@
1
- @layer fds.textarea {
1
+ @layer ds.textarea {
2
2
  .fds-textarea {
3
3
  display: grid;
4
4
  gap: var(--ds-spacing-2);
5
5
  }
6
6
 
7
- .fds-textarea__readonly__icon {
7
+ .fds-textarea__readonly-icon {
8
8
  height: 1.2em;
9
9
  width: 1.2em;
10
10
  }
@@ -53,15 +53,15 @@
53
53
  padding: var(--ds-spacing-4);
54
54
  }
55
55
 
56
- .fds-textarea--disabled {
57
- opacity: var(--ds-opacity-disabled);
56
+ .fds-textarea:has(.fds-textarea__input:disabled) {
57
+ opacity: var(--ds-disabled-opacity);
58
58
  }
59
59
 
60
- .fds-textarea--disabled .fds-textarea__input {
60
+ .fds-textarea__input:disabled {
61
61
  cursor: not-allowed;
62
62
  }
63
63
 
64
- .fds-textarea--readonly .fds-textarea__input {
64
+ .fds-textarea__input:read-only {
65
65
  background: var(--ds-color-neutral-background-subtle);
66
66
  border-color: var(--ds-color-neutral-border-strong);
67
67
  }
package/textfield.css CHANGED
@@ -1,4 +1,4 @@
1
- @layer fds.textfield {
1
+ @layer ds.textfield {
2
2
  .fds-textfield {
3
3
  display: grid;
4
4
  gap: var(--ds-spacing-2);
@@ -24,10 +24,12 @@
24
24
  appearance: none;
25
25
  padding: 0 var(--ds-spacing-3);
26
26
  border: solid 1px var(--ds-color-neutral-border-default);
27
+ background: var(--ds-color-neutral-background-default);
28
+ color: var(--ds-color-neutral-text-default);
27
29
  border-radius: var(--ds-border-radius-md);
28
30
  }
29
31
 
30
- .fds-textfield--disabled .fds-textfield__input {
32
+ .fds-textfield__input:disabled {
31
33
  cursor: not-allowed;
32
34
  }
33
35
 
@@ -101,8 +103,8 @@
101
103
  margin-top: calc(var(--ds-spacing-2) * -1);
102
104
  }
103
105
 
104
- .fds-textfield--disabled {
105
- opacity: var(--ds-opacity-disabled);
106
+ .fds-textfield:has(.fds-textfield__input:disabled) {
107
+ opacity: var(--ds-disabled-opacity);
106
108
  }
107
109
 
108
110
  .fds-textfield--error .fds-textfield__input:not(:focus-visible) {
package/togglegroup.css CHANGED
@@ -1,9 +1,10 @@
1
- @layer fds.togglegroup {
1
+ @layer ds.togglegroup {
2
2
  .fds-togglegroup {
3
3
  background-color: var(--ds-color-neutral-background-default);
4
- border: var(--ds-color-neutral-border-strong) solid var(--ds-border-width-default);
4
+ border: var(--ds-color-neutral-border-default) solid var(--ds-border-width-default);
5
5
  border-radius: var(--ds-border-radius-lg);
6
6
  width: fit-content;
7
+ height: fit-content;
7
8
  }
8
9
 
9
10
  .fds-togglegroup__content {
package/tooltip.css CHANGED
@@ -1,10 +1,10 @@
1
- @layer fds.tooltip {
1
+ @layer ds.tooltip {
2
2
  .fds-tooltip {
3
- --dsc-tooltip-background: var(--ds-color-neutral-background-default);
3
+ --dsc-tooltip-background: var(--ds-color-neutral-text-default);
4
4
 
5
5
  background: var(--dsc-tooltip-background);
6
6
  padding: var(--ds-spacing-1) var(--ds-spacing-2);
7
- color: var(--ds-color-neutral-text-default);
7
+ color: var(--ds-color-neutral-background-default);
8
8
  border-radius: var(--ds-border-radius-md);
9
9
  font: var(--ds-typography-paragraph-xs);
10
10
  font-family: inherit;
package/utils.css CHANGED
@@ -1,4 +1,4 @@
1
- @layer fds.utils {
1
+ @layer ds.utils {
2
2
  /**
3
3
  * Visually hide an element, but leave it available for screen readers
4
4
  */
@@ -19,9 +19,9 @@
19
19
  .fds-focus:focus-visible {
20
20
  --dsc-focus-border-width: 3px;
21
21
 
22
- outline: var(--dsc-focus-border-width) solid var(--ds-color-neutral-text-default);
22
+ outline: var(--dsc-focus-border-width) solid var(--ds-focus-outer);
23
23
  outline-offset: var(--dsc-focus-border-width);
24
- box-shadow: 0 0 0 var(--dsc-focus-border-width) var(--ds-color-neutral-background-default);
24
+ box-shadow: 0 0 0 var(--dsc-focus-border-width) var(--ds-focus-inner);
25
25
  }
26
26
 
27
27
  @layer animate-height {