@digdir/designsystemet-css 0.6.1-alpha.1 → 0.8.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 (76) hide show
  1. package/LICENSE +1 -1
  2. package/box.css +73 -0
  3. package/button.css +9 -9
  4. package/card.css +157 -0
  5. package/checkbox.css +175 -0
  6. package/chip.css +173 -0
  7. package/combobox.css +344 -0
  8. package/dist/box.css +1 -0
  9. package/dist/button.css +1 -1
  10. package/dist/card.css +1 -0
  11. package/dist/checkbox.css +1 -0
  12. package/dist/chip.css +1 -0
  13. package/dist/combobox.css +1 -0
  14. package/dist/divider.css +1 -0
  15. package/dist/dropdownmenu.css +1 -0
  16. package/dist/error-message.css +1 -0
  17. package/dist/error-summary.css +1 -0
  18. package/dist/fieldset.css +1 -0
  19. package/dist/heading.css +1 -0
  20. package/dist/helptext.css +1 -0
  21. package/dist/index.css +1 -1
  22. package/dist/ingress.css +1 -1
  23. package/dist/label.css +1 -0
  24. package/dist/link.css +1 -0
  25. package/dist/list.css +1 -0
  26. package/dist/modal.css +1 -0
  27. package/dist/native-select.css +1 -0
  28. package/dist/pagination.css +1 -0
  29. package/dist/paragraph.css +1 -0
  30. package/dist/popover.css +1 -0
  31. package/dist/radio.css +1 -0
  32. package/dist/search.css +1 -0
  33. package/dist/skeleton.css +1 -0
  34. package/dist/spinner.css +1 -0
  35. package/dist/switch.css +1 -0
  36. package/dist/table.css +1 -0
  37. package/dist/tabs.css +1 -0
  38. package/dist/tag.css +1 -0
  39. package/dist/textarea.css +1 -0
  40. package/dist/textfield.css +1 -0
  41. package/dist/togglegroup.css +1 -0
  42. package/dist/tooltip.css +1 -0
  43. package/dist/utils.css +1 -1
  44. package/divider.css +18 -0
  45. package/dropdownmenu.css +46 -0
  46. package/error-message.css +43 -0
  47. package/error-summary.css +15 -0
  48. package/fieldset.css +41 -0
  49. package/heading.css +68 -0
  50. package/helptext.css +58 -0
  51. package/index.css +33 -2
  52. package/ingress.css +1 -1
  53. package/label.css +46 -0
  54. package/link.css +36 -0
  55. package/list.css +18 -0
  56. package/modal.css +106 -0
  57. package/native-select.css +92 -0
  58. package/package.json +2 -5
  59. package/pagination.css +69 -0
  60. package/paragraph.css +82 -0
  61. package/popover.css +79 -0
  62. package/radio.css +171 -0
  63. package/search.css +170 -0
  64. package/skeleton.css +59 -0
  65. package/spinner.css +75 -0
  66. package/switch.css +216 -0
  67. package/table.css +136 -0
  68. package/tabs.css +103 -0
  69. package/tag.css +72 -0
  70. package/textarea.css +80 -0
  71. package/textfield.css +150 -0
  72. package/togglegroup.css +24 -0
  73. package/tooltip.css +23 -0
  74. package/utils.css +16 -0
  75. package/dist/react-css-modules.css +0 -1
  76. package/react-css-modules.css +0 -3099
@@ -0,0 +1,46 @@
1
+ @layer fds.dropdownmenu {
2
+ .fds-dropdownmenu {
3
+ position: relative;
4
+ padding: var(--fds-spacing-2);
5
+ z-index: 1500;
6
+ margin: 0;
7
+ list-style: none;
8
+ border-radius: var(--fds-border_radius-medium);
9
+ box-shadow: var(--fds-shadow-medium);
10
+ background-color: var(--fds-semantic-background-default);
11
+ }
12
+
13
+ .fds-dropdownmenu--small {
14
+ min-width: 240px;
15
+ padding: var(--fds-spacing-2);
16
+ }
17
+
18
+ .fds-dropdownmenu--medium {
19
+ min-width: 260px;
20
+ padding: var(--fds-spacing-3) var(--fds-spacing-2);
21
+ }
22
+
23
+ .fds-dropdownmenu--large {
24
+ min-width: 280px;
25
+ padding: var(--fds-spacing-4) var(--fds-spacing-2);
26
+ }
27
+
28
+ .fds-dropdownmenu > hr {
29
+ border-color: var(--fds-semantic-border-divider-subtle) !important;
30
+ }
31
+
32
+ .fds-dropdownmenu__item {
33
+ justify-content: start;
34
+ padding: 0 var(--fds-spacing-4);
35
+ }
36
+
37
+ .fds-dropdownmenu__section {
38
+ margin: 0;
39
+ padding: 0;
40
+ list-style: none;
41
+ }
42
+
43
+ .fds-dropdownmenu__heading {
44
+ padding: var(--fds-spacing-2) var(--fds-spacing-4);
45
+ }
46
+ }
@@ -0,0 +1,43 @@
1
+ @layer fds.typography.error-message {
2
+ .fds-error-message {
3
+ --fdsc-bottom-spacing: var(--fds-spacing-5);
4
+
5
+ margin: 0;
6
+ }
7
+
8
+ .fds-error-message--error {
9
+ color: var(--fds-semantic-text-danger-default);
10
+ }
11
+
12
+ .fds-error-message--spacing {
13
+ margin-bottom: var(--fdsc-bottom-spacing);
14
+ }
15
+
16
+ .fds-error-message--large {
17
+ --fdsc-bottom-spacing: var(--fds-spacing-5);
18
+
19
+ font: var(--fds-typography-error_message-large);
20
+ font-family: inherit;
21
+ }
22
+
23
+ .fds-error-message--medium {
24
+ --fdsc-bottom-spacing: var(--fds-spacing-5);
25
+
26
+ font: var(--fds-typography-error_message-medium);
27
+ font-family: inherit;
28
+ }
29
+
30
+ .fds-error-message--small {
31
+ --fdsc-bottom-spacing: var(--fds-spacing-4);
32
+
33
+ font: var(--fds-typography-error_message-small);
34
+ font-family: inherit;
35
+ }
36
+
37
+ .fds-error-message--xsmall {
38
+ --fdsc-bottom-spacing: var(--fds-spacing-3);
39
+
40
+ font: var(--fds-typography-error_message-xsmall);
41
+ font-family: inherit;
42
+ }
43
+ }
@@ -0,0 +1,15 @@
1
+ @layer fds.errorsummary {
2
+ .fds-error-summary {
3
+ padding: var(--fds-spacing-6) var(--fds-spacing-8);
4
+ border-radius: var(--fds-border_radius-large);
5
+ background-color: var(--fds-semantic-surface-danger-subtle);
6
+ }
7
+
8
+ .fds-error-summary a {
9
+ color: var(--fds-semantic-text-neutral-default);
10
+ }
11
+
12
+ .fds-error-summary li:last-of-type {
13
+ margin-bottom: 0;
14
+ }
15
+ }
package/fieldset.css ADDED
@@ -0,0 +1,41 @@
1
+ @layer fds.fieldset {
2
+ .fds-fieldset {
3
+ margin: 0;
4
+ padding: 0;
5
+ border: 0;
6
+ min-width: 0;
7
+ }
8
+
9
+ .fds-fieldset--spacing {
10
+ display: flex;
11
+ flex-direction: column;
12
+ gap: var(--fds-spacing-2);
13
+ }
14
+
15
+ .fds-fieldset__description {
16
+ color: var(--fds-semantic-text-neutral-subtle);
17
+ font-weight: 400;
18
+ }
19
+
20
+ .fds-fieldset__legend {
21
+ display: contents;
22
+ }
23
+
24
+ .fds-fieldset--readonly .fds-fieldset__legend__content {
25
+ display: inline-flex;
26
+ }
27
+
28
+ .fds-fieldset--readonly .fds-fieldset__readonly__icon {
29
+ height: 1.2em;
30
+ width: 1.2em;
31
+ }
32
+
33
+ .fds-fieldset--disabled .fds-fieldset__legend,
34
+ .fds-fieldset--disabled .fds-fieldset__description {
35
+ color: var(--fds-semantic-border-neutral-subtle);
36
+ }
37
+
38
+ .fds-fieldset__error-message {
39
+ display: contents;
40
+ }
41
+ }
package/heading.css ADDED
@@ -0,0 +1,68 @@
1
+ @layer fds.typography.heading {
2
+ .fds-heading {
3
+ --fdsc-bottom-spacing: var(--fds-spacing-6);
4
+
5
+ margin: 0;
6
+ color: var(--fds-semantic-text-neutral-default);
7
+ }
8
+
9
+ .fds-heading--spacing {
10
+ margin-bottom: var(--fdsc-bottom-spacing);
11
+ }
12
+
13
+ .fds-heading--3xlarge {
14
+ --fdsc-bottom-spacing: var(--fds-spacing-8);
15
+
16
+ font: var(--fds-typography-heading-3xlarge);
17
+ font-family: inherit;
18
+ }
19
+
20
+ .fds-heading--2xlarge {
21
+ --fdsc-bottom-spacing: var(--fds-spacing-7);
22
+
23
+ font: var(--fds-typography-heading-2xlarge);
24
+ font-family: inherit;
25
+ }
26
+
27
+ .fds-heading--xlarge {
28
+ --fdsc-bottom-spacing: var(--fds-spacing-6);
29
+
30
+ font: var(--fds-typography-heading-xlarge);
31
+ font-family: inherit;
32
+ }
33
+
34
+ .fds-heading--large {
35
+ --fdsc-bottom-spacing: var(--fds-spacing-5);
36
+
37
+ font: var(--fds-typography-heading-large);
38
+ font-family: inherit;
39
+ }
40
+
41
+ .fds-heading--medium {
42
+ --fdsc-bottom-spacing: var(--fds-spacing-4);
43
+
44
+ font: var(--fds-typography-heading-medium);
45
+ font-family: inherit;
46
+ }
47
+
48
+ .fds-heading--small {
49
+ --fdsc-bottom-spacing: var(--fds-spacing-3);
50
+
51
+ font: var(--fds-typography-heading-small);
52
+ font-family: inherit;
53
+ }
54
+
55
+ .fds-heading--xsmall {
56
+ --fdsc-bottom-spacing: var(--fds-spacing-2);
57
+
58
+ font: var(--fds-typography-heading-xsmall);
59
+ font-family: inherit;
60
+ }
61
+
62
+ .fds-heading--xxsmall {
63
+ --fdsc-bottom-spacing: var(--fds-spacing-1);
64
+
65
+ font: var(--fds-typography-heading-xxsmall);
66
+ font-family: inherit;
67
+ }
68
+ }
package/helptext.css ADDED
@@ -0,0 +1,58 @@
1
+ @layer fds.helptext {
2
+ .fds-helptext__button {
3
+ background-color: transparent;
4
+ border-radius: 50px;
5
+ padding: 0 !important;
6
+ cursor: pointer;
7
+ display: flex;
8
+ border: none;
9
+ min-width: 0;
10
+ min-height: 0;
11
+ }
12
+
13
+ @media print {
14
+ .fds-helptext__button {
15
+ display: none;
16
+ }
17
+ }
18
+
19
+ .fds-helptext__icon--filled {
20
+ display: none;
21
+ }
22
+
23
+ .fds-helptext__icon {
24
+ color: var(--fds-semantic-text-action-default);
25
+ width: var(--fds-sizing-7);
26
+ height: var(--fds-sizing-7);
27
+ }
28
+
29
+ .fds-helptext__button:where(:hover, :focus, [data-state^='open']) > .fds-helptext__icon {
30
+ display: none;
31
+ }
32
+
33
+ .fds-helptext__button:where(:hover, :focus, [data-state^='open']) > .fds-helptext__icon--filled {
34
+ display: inline-block;
35
+ }
36
+
37
+ .fds-helptext__content {
38
+ font: var(--fds-typography-paragraph-medium);
39
+ font-family: inherit;
40
+ width: fit-content;
41
+ max-width: 700px;
42
+ }
43
+
44
+ .fds-helptext--small .fds-helptext__icon {
45
+ width: var(--fds-sizing-6);
46
+ height: var(--fds-sizing-6);
47
+ }
48
+
49
+ .fds-helptext--medium .fds-helptext__icon {
50
+ width: var(--fds-sizing-7);
51
+ height: var(--fds-sizing-7);
52
+ }
53
+
54
+ .fds-helptext--large .fds-helptext__icon {
55
+ width: var(--fds-sizing-8);
56
+ height: var(--fds-sizing-8);
57
+ }
58
+ }
package/index.css CHANGED
@@ -1,12 +1,43 @@
1
1
  @charset "UTF-8";
2
2
 
3
- @layer fds.utils, fds.btn;
3
+ @layer fds.typography, fds.utils, fds.btn;
4
4
 
5
5
  /** Import order defines ordinal specificity for layers */
6
- @import url('./react-css-modules.css');
7
6
  @import url('./button.css');
8
7
  @import url('./utils.css');
8
+ @import url('./box.css');
9
9
  @import url('./alert.css');
10
10
  @import url('./ingress.css');
11
11
  @import url('./skiplink.css');
12
12
  @import url('./accordion.css');
13
+ @import url('./switch.css');
14
+ @import url('./checkbox.css');
15
+ @import url('./error-message.css');
16
+ @import url('./label.css');
17
+ @import url('./heading.css');
18
+ @import url('./paragraph.css');
19
+ @import url('./radio.css');
20
+ @import url('./search.css');
21
+ @import url('./native-select.css');
22
+ @import url('./textfield.css');
23
+ @import url('./textarea.css');
24
+ @import url('./helptext.css');
25
+ @import url('./modal.css');
26
+ @import url('./list.css');
27
+ @import url('./card.css');
28
+ @import url('./link.css');
29
+ @import url('./fieldset.css');
30
+ @import url('./dropdownmenu.css');
31
+ @import url('./chip');
32
+ @import url('./divider.css');
33
+ @import url('./tabs.css');
34
+ @import url('./pagination.css');
35
+ @import url('./popover.css');
36
+ @import url('./skeleton.css');
37
+ @import url('./tag.css');
38
+ @import url('./error-summary.css');
39
+ @import url('./togglegroup.css');
40
+ @import url('./tooltip.css');
41
+ @import url('./spinner.css');
42
+ @import url('./table.css');
43
+ @import url('./combobox.css');
package/ingress.css CHANGED
@@ -1,4 +1,4 @@
1
- @layer fds.ingress {
1
+ @layer fds.typography.ingress {
2
2
  .fds-ingress {
3
3
  --fdsc-bottom-spacing: var(--fds-spacing-5);
4
4
 
package/label.css ADDED
@@ -0,0 +1,46 @@
1
+ @layer fds.typography.label {
2
+ .fds-label {
3
+ --fdsc-bottom-spacing: var(--fds-spacing-1);
4
+
5
+ display: inline-block;
6
+ margin: 0;
7
+ padding: 0;
8
+ color: var(--fds-semantic-text-neutral-default);
9
+ }
10
+
11
+ .fds-label--spacing {
12
+ margin-bottom: var(--fdsc-bottom-spacing);
13
+ }
14
+
15
+ .fds-label--large {
16
+ font: var(--fds-typography-label-large);
17
+ font-family: inherit;
18
+ }
19
+
20
+ .fds-label--medium {
21
+ font: var(--fds-typography-label-medium);
22
+ font-family: inherit;
23
+ }
24
+
25
+ .fds-label--small {
26
+ font: var(--fds-typography-label-small);
27
+ font-family: inherit;
28
+ }
29
+
30
+ .fds-label--xsmall {
31
+ font: var(--fds-typography-label-xsmall);
32
+ font-family: inherit;
33
+ }
34
+
35
+ .fds-label--regular-weight {
36
+ font-weight: 400;
37
+ }
38
+
39
+ .fds-label--medium-weight {
40
+ font-weight: 500;
41
+ }
42
+
43
+ .fds-label--semibold-weight {
44
+ font-weight: 600;
45
+ }
46
+ }
package/link.css ADDED
@@ -0,0 +1,36 @@
1
+ @layer fds.link {
2
+ .fds-link {
3
+ color: var(--fds-semantic-text-action-default);
4
+ cursor: pointer;
5
+ text-decoration: underline;
6
+ text-decoration-thickness: max(1px, 0.0625rem);
7
+ text-underline-offset: max(4px, 0.25rem);
8
+ display: inline-flex;
9
+ align-items: center;
10
+ gap: var(--fds-spacing-1);
11
+ }
12
+
13
+ .fds-link:visited {
14
+ color: var(--fds-semantic-text-visited-default);
15
+ text-decoration: none;
16
+ }
17
+
18
+ .fds-link:hover {
19
+ color: var(--fds-semantic-text-action-hover);
20
+ text-decoration-thickness: max(2px, 0.125rem, 0.12em);
21
+ }
22
+
23
+ .fds-link:focus-visible {
24
+ background: var(--fds-semantic-border-focus-outline);
25
+ box-shadow: 0 max(3px, 0.1875rem, 0.18em) var(--fds-semantic-border-focus-boxshadow);
26
+ color: var(--fds-semantic-text-action-active);
27
+ outline: none;
28
+ text-decoration: none;
29
+ }
30
+
31
+ .fds-link--inverted:not(:focus-visible, :active),
32
+ .fds-link--inverted:not(:focus-visible, :active):hover,
33
+ .fds-link--inverted:not(:focus-visible, :active):visited {
34
+ color: white;
35
+ }
36
+ }
package/list.css ADDED
@@ -0,0 +1,18 @@
1
+ @layer fds.list {
2
+ .fds-list--small {
3
+ padding-left: var(--fds-spacing-4);
4
+ }
5
+
6
+ .fds-list--medium,
7
+ .fds-list--large {
8
+ padding-left: var(--fds-spacing-6);
9
+ }
10
+
11
+ .fds-list__item {
12
+ margin-bottom: var(--fds-spacing-2);
13
+ }
14
+
15
+ .fds-list__item > .fds-list {
16
+ margin-top: var(--fds-spacing-2);
17
+ }
18
+ }
package/modal.css ADDED
@@ -0,0 +1,106 @@
1
+ @layer fds.modal {
2
+ .fds-modal {
3
+ padding: 0;
4
+ width: 100%;
5
+ max-width: 650px;
6
+ border: none;
7
+ border-radius: var(--fds-border_radius-medium);
8
+ box-shadow: var(--fds-shadow-xlarge);
9
+ }
10
+
11
+ .fds-modal::backdrop {
12
+ background-color: rgb(0 0 0 / 0.5);
13
+ animation: fade-in 300ms ease-in-out;
14
+ }
15
+
16
+ .fds-modal[open] {
17
+ animation:
18
+ slide-in 300ms ease-in-out,
19
+ fade-in 300ms ease-in-out;
20
+ }
21
+
22
+ .fds-modal > hr {
23
+ margin: var(--fds-spacing-3) 0 !important;
24
+ border-color: var(--fds-semantic-border-divider-subtle);
25
+ }
26
+
27
+ .fds-modal--lock-scroll {
28
+ overflow: hidden;
29
+ }
30
+
31
+ @media (max-width: 650px) {
32
+ .fds-modal {
33
+ min-width: 100%;
34
+ max-width: 100%;
35
+ border-radius: 0;
36
+ }
37
+ }
38
+
39
+ @media (prefers-reduced-motion: reduce) {
40
+ .fds-modal[open] {
41
+ animation: none;
42
+ }
43
+
44
+ .fds-modal::backdrop {
45
+ animation: none;
46
+ }
47
+ }
48
+
49
+ @keyframes slide-in {
50
+ 0% {
51
+ transform: translateY(50px);
52
+ }
53
+
54
+ 100% {
55
+ transform: translateY(0);
56
+ }
57
+ }
58
+
59
+ @keyframes fade-in {
60
+ 0% {
61
+ opacity: 0;
62
+ }
63
+
64
+ 100% {
65
+ opacity: 1;
66
+ }
67
+ }
68
+
69
+ .fds-modal__header {
70
+ display: flex;
71
+ justify-content: space-between;
72
+ flex-direction: column;
73
+ padding-top: var(--fds-spacing-6);
74
+ padding-bottom: var(--fds-spacing-2);
75
+ padding-left: var(--fds-spacing-6);
76
+ padding-right: var(--fds-spacing-18);
77
+ gap: var(--fds-spacing-1);
78
+ color: var(--fds-semantic-text-neutral-default);
79
+ }
80
+
81
+ .fds-modal__header--no-button {
82
+ padding-right: var(--fds-spacing-6);
83
+ }
84
+
85
+ .fds-modal__header__button {
86
+ position: absolute;
87
+ top: var(--fds-spacing-3);
88
+ right: var(--fds-spacing-3);
89
+ }
90
+
91
+ .fds-modal__footer {
92
+ display: flex;
93
+ align-items: center;
94
+ gap: var(--fds-spacing-4);
95
+ padding-top: var(--fds-spacing-3);
96
+ padding-bottom: var(--fds-spacing-6);
97
+ padding-left: var(--fds-spacing-6);
98
+ padding-right: var(--fds-spacing-6);
99
+ }
100
+
101
+ .fds-modal__content {
102
+ padding: var(--fds-spacing-2) var(--fds-spacing-6);
103
+ max-height: 80vh;
104
+ overflow-y: auto;
105
+ }
106
+ }
@@ -0,0 +1,92 @@
1
+ @layer fds.nativeselect {
2
+ .fds-native-select {
3
+ position: relative;
4
+ font: inherit;
5
+ font-family: inherit;
6
+ box-sizing: border-box;
7
+ flex: 0 1 auto;
8
+ padding: 0 var(--fds-spacing-2);
9
+ border: solid 1px var(--fds-semantic-border-input-default);
10
+ border-radius: var(--fds-border_radius-medium);
11
+ background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMWVtJyBoZWlnaHQ9JzFlbScgdmlld0JveD0nMCAwIDI0IDI0JyBmaWxsPSdub25lJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGZvY3VzYWJsZT0nZmFsc2UnIHJvbGU9J2ltZyc+PHBhdGggZmlsbC1ydWxlPSdldmVub2RkJyBjbGlwLXJ1bGU9J2V2ZW5vZGQnIGQ9J001Ljk3IDkuNDdhLjc1Ljc1IDAgMCAxIDEuMDYgMEwxMiAxNC40NGw0Ljk3LTQuOTdhLjc1Ljc1IDAgMSAxIDEuMDYgMS4wNmwtNS41IDUuNWEuNzUuNzUgMCAwIDEtMS4wNiAwbC01LjUtNS41YS43NS43NSAwIDAgMSAwLTEuMDZaJyBmaWxsPSdjdXJyZW50Q29sb3InPjwvcGF0aD48L3N2Zz4=');
12
+ background-color: var(--fds-semantic-background-default);
13
+ background-repeat: no-repeat;
14
+ background-position: right var(--fds-spacing-2) center;
15
+ background-size: 1.5em 1.5em;
16
+ appearance: none;
17
+ }
18
+
19
+ @media (hover: hover) and (pointer: fine) {
20
+ .fds-native-select:not(:focus-visible, :disabled, [aria-disabled]):hover {
21
+ border-color: var(--fds-semantic-border-input-hover);
22
+ box-shadow: inset 0 0 0 1px var(--fds-semantic-border-input-hover);
23
+ }
24
+ }
25
+
26
+ .fds-native-select.fds-native-select--multiple {
27
+ background-image: none;
28
+ }
29
+
30
+ .fds-native-select--small {
31
+ padding: 0 var(--fds-spacing-2);
32
+ padding-right: var(--fds-spacing-8);
33
+ height: var(--fds-sizing-10);
34
+ }
35
+
36
+ .fds-native-select--medium {
37
+ padding: 0 var(--fds-spacing-3);
38
+ padding-right: var(--fds-spacing-10);
39
+ height: var(--fds-sizing-12);
40
+ }
41
+
42
+ .fds-native-select--large {
43
+ padding: 0 var(--fds-spacing-4);
44
+ padding-right: var(--fds-spacing-12);
45
+ height: var(--fds-sizing-14);
46
+ }
47
+
48
+ .fds-native-select--container {
49
+ display: grid;
50
+ gap: var(--fds-spacing-2);
51
+ }
52
+
53
+ .fds-native-select--disabled {
54
+ opacity: var(--fds-opacity-disabled);
55
+ }
56
+
57
+ .fds-native-select--disabled .fds-native-select {
58
+ cursor: not-allowed;
59
+ }
60
+
61
+ .fds-native-select--readonly .fds-native-select {
62
+ background: var(--fds-semantic-surface-neutral-subtle);
63
+ border-color: var(--fds-semantic-border-neutral-default);
64
+ }
65
+
66
+ .fds-native-select--error > .fds-native-select:not(:focus-visible) {
67
+ border-color: var(--fds-semantic-border-danger-default);
68
+ box-shadow: inset 0 0 0 1px var(--fds-semantic-border-danger-default);
69
+ }
70
+
71
+ .fds-native-select__readonly__icon {
72
+ height: 1.2em;
73
+ width: 1.2em;
74
+ }
75
+
76
+ .fds-native-select__error-message:empty {
77
+ display: none;
78
+ }
79
+
80
+ .fds-native-select__label {
81
+ min-width: min-content;
82
+ display: inline-flex;
83
+ flex-direction: row;
84
+ gap: var(--fds-spacing-1);
85
+ align-items: center;
86
+ }
87
+
88
+ .fds-native-select__description {
89
+ color: var(--fds-semantic-text-neutral-subtle);
90
+ margin-top: calc(var(--fds-spacing-2) * -1);
91
+ }
92
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet-css",
3
- "version": "0.6.1-alpha.1",
3
+ "version": "0.8.0",
4
4
  "description": "CSS for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "repository": "https://github.com/digdir/designsystemet",
@@ -39,8 +39,5 @@
39
39
  "postcss-import": "^16.0.1",
40
40
  "rimraf": "^5.0.5"
41
41
  },
42
- "dependencies": {
43
- "@digdir/designsystemet-react": "^0.59.1-alpha.1"
44
- },
45
- "gitHead": "7e9e9ba1eed73f95f9edb4cc4226167a551e92aa"
42
+ "gitHead": "878b8bbe53351879efff228b0b8c11eeca8c23bb"
46
43
  }