@digdir/designsystemet-css 0.11.0-alpha.7 → 0.11.0-alpha.9
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/accordion.css +118 -120
- package/alert.css +58 -64
- package/box.css +70 -72
- package/button.css +174 -176
- package/card.css +189 -191
- package/checkbox.css +157 -159
- package/chip.css +140 -142
- package/combobox.css +295 -295
- package/dist/accordion.css +1 -1
- package/dist/alert.css +1 -1
- package/dist/box.css +1 -1
- package/dist/button.css +1 -1
- package/dist/card.css +1 -1
- package/dist/checkbox.css +1 -1
- package/dist/chip.css +1 -1
- package/dist/combobox.css +1 -1
- package/dist/divider.css +1 -1
- package/dist/dropdownmenu.css +1 -1
- package/dist/error-summary.css +1 -1
- package/dist/fieldset.css +1 -1
- package/dist/helptext.css +1 -1
- package/dist/index.css +1 -1
- package/dist/link.css +1 -1
- package/dist/list.css +1 -1
- package/dist/modal.css +1 -1
- package/dist/native-select.css +1 -1
- package/dist/pagination.css +1 -1
- package/dist/popover.css +1 -1
- package/dist/radio.css +1 -1
- package/dist/search.css +1 -1
- package/dist/skeleton.css +1 -1
- package/dist/skiplink.css +1 -1
- package/dist/spinner.css +1 -1
- package/dist/switch.css +1 -1
- package/dist/table.css +1 -1
- package/dist/tabs.css +1 -1
- package/dist/tag.css +1 -1
- package/dist/textarea.css +1 -1
- package/dist/textfield.css +1 -1
- package/dist/togglegroup.css +1 -1
- package/dist/tooltip.css +1 -1
- package/dist/utilities.css +1 -0
- package/divider.css +13 -15
- package/dropdownmenu.css +55 -46
- package/error-summary.css +19 -15
- package/fieldset.css +42 -44
- package/helptext.css +49 -46
- package/index.css +40 -40
- package/link.css +50 -52
- package/list.css +18 -14
- package/modal.css +86 -85
- package/native-select.css +88 -90
- package/package.json +2 -2
- package/pagination.css +53 -55
- package/popover.css +71 -69
- package/radio.css +151 -146
- package/search.css +138 -142
- package/skeleton.css +46 -47
- package/skiplink.css +41 -41
- package/spinner.css +51 -49
- package/switch.css +190 -192
- package/table.css +117 -111
- package/tabs.css +69 -75
- package/tag.css +57 -59
- package/textarea.css +64 -66
- package/textfield.css +122 -122
- package/togglegroup.css +22 -24
- package/tooltip.css +12 -11
- package/utilities.css +38 -0
package/chip.css
CHANGED
|
@@ -1,173 +1,171 @@
|
|
|
1
|
-
|
|
2
|
-
/*
|
|
1
|
+
/*
|
|
3
2
|
The class is unused. There is no root chip component?
|
|
4
3
|
.chip {
|
|
5
4
|
display: flex;
|
|
6
5
|
}
|
|
7
6
|
*/
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
.ds-chip--button {
|
|
9
|
+
--dsc-chip-height: var(--ds-sizing-7);
|
|
10
|
+
--dsc-chip-padding: 0 var(--ds-spacing-3);
|
|
11
|
+
--dsc-chip-background: var(--ds-color-accent-surface-default);
|
|
12
|
+
--dsc-chip-text-color: var(--ds-color-neutral-text-default);
|
|
13
|
+
--dsc-chip-border: var(--ds-color-accent-border-subtle);
|
|
14
|
+
--dsc-chip-border-radius: var(--ds-border-radius-full);
|
|
15
|
+
|
|
16
|
+
background: var(--dsc-chip-background);
|
|
17
|
+
padding: var(--dsc-chip-padding);
|
|
18
|
+
min-height: var(--dsc-chip-height);
|
|
19
|
+
border-radius: var(--dsc-chip-border-radius);
|
|
20
|
+
border: 1px solid var(--dsc-chip-border);
|
|
21
|
+
color: var(--dsc-chip-text-color);
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
font-family: inherit;
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
}
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
.ds-chip--button:disabled,
|
|
29
|
+
.ds-chip--button[aria-disabled='true'] {
|
|
30
|
+
cursor: not-allowed;
|
|
31
|
+
opacity: var(--ds-disabled-opacity);
|
|
32
|
+
}
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
.ds-chip--button .ds-chip__label {
|
|
35
|
+
color: inherit;
|
|
36
|
+
line-height: normal;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
flex-direction: row;
|
|
40
|
+
gap: var(--ds-spacing-2);
|
|
41
|
+
}
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
.ds-chip--removable {
|
|
44
|
+
--dsc-removable-background: var(--ds-color-accent-base-default);
|
|
45
|
+
--dsc-removable-text-color: var(--ds-color-neutral-contrast-default);
|
|
46
|
+
--dsc-removable-chip-size: var(--ds-sizing-7);
|
|
47
|
+
--dsc-removable-chip-xmark-color: var(--ds-color-neutral-contrast-default);
|
|
48
|
+
--dsc-removable-chip-xmark-padding_right: var(--ds-spacing-1);
|
|
49
|
+
--dsc-removable-chip-xmark-size: var(--ds-sizing-6);
|
|
50
|
+
--dsc-removable-chip-xmark-wrapper-width: calc(var(--dsc-removable-chip-xmark-size) + var(--dsc-removable-chip-xmark-padding_right));
|
|
51
|
+
|
|
52
|
+
color: var(--dsc-removable-text-color);
|
|
53
|
+
background: var(--dsc-removable-background);
|
|
54
|
+
border: 0;
|
|
55
|
+
padding-right: var(--ds-spacing-2);
|
|
56
|
+
min-height: var(--dsc-chip-height);
|
|
57
|
+
}
|
|
59
58
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
.ds-chip--removable.ds-chip--sm {
|
|
60
|
+
padding-right: var(--ds-spacing-1);
|
|
61
|
+
}
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
.ds-chip--removable.ds-chip--lg {
|
|
64
|
+
padding-right: var(--ds-spacing-2);
|
|
65
|
+
}
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
.ds-chip__x-mark {
|
|
68
|
+
color: var(--dsc-removable-chip-xmark-color);
|
|
69
|
+
height: var(--dsc-removable-chip-xmark-size);
|
|
70
|
+
width: var(--dsc-removable-chip-xmark-size);
|
|
71
|
+
}
|
|
73
72
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
.ds-chip__x-mark .ds-chip__icon {
|
|
74
|
+
height: var(--dsc-removable-chip-xmark-size);
|
|
75
|
+
width: var(--dsc-removable-chip-xmark-size);
|
|
76
|
+
}
|
|
78
77
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
.ds-chip--spacing {
|
|
79
|
+
padding-left: var(--ds-spacing-2) !important;
|
|
80
|
+
}
|
|
82
81
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
.ds-chip--sm .ds-chip__checkmark-icon {
|
|
83
|
+
height: var(--ds-sizing-5);
|
|
84
|
+
width: auto;
|
|
85
|
+
}
|
|
87
86
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
.ds-chip--md .ds-chip__checkmark-icon {
|
|
88
|
+
height: 24px;
|
|
89
|
+
width: auto;
|
|
90
|
+
}
|
|
92
91
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
.ds-chip--lg .ds-chip__checkmark-icon {
|
|
93
|
+
height: 26px;
|
|
94
|
+
width: auto;
|
|
95
|
+
}
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
.ds-chip--group-container {
|
|
98
|
+
--dsc-chip-group-gap: var(--ds-spacing-2);
|
|
100
99
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
display: flex;
|
|
101
|
+
gap: var(--dsc-chip-group-gap);
|
|
102
|
+
list-style-type: none;
|
|
103
|
+
padding: 0;
|
|
104
|
+
margin: 0;
|
|
105
|
+
}
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
.ds-chip--group-container.ds-chip--sm {
|
|
108
|
+
--dsc-chip-group-gap: var(--ds-spacing-2);
|
|
109
|
+
}
|
|
111
110
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
.ds-chip--group-container.ds-chip--md {
|
|
112
|
+
--dsc-chip-group-gap: var(--ds-spacing-2);
|
|
113
|
+
}
|
|
115
114
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
.ds-chip--group-container.ds-chip--lg {
|
|
116
|
+
--dsc-chip-group-gap: var(--ds-spacing-2);
|
|
117
|
+
}
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.ds-chip--button:not(:disabled, [aria-disabled='true']):is([aria-pressed='true']):hover {
|
|
131
|
-
--dsc-chip-background: var(--ds-color-accent-surface-hover);
|
|
132
|
-
--dsc-chip-text-color: var(--ds-color-neutral-text-default);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.ds-chip--removable:not(:disabled, [aria-disabled='true']):hover,
|
|
136
|
-
.ds-chip--removable:not(:disabled, [aria-disabled='true']):focus {
|
|
137
|
-
--dsc-removable-background: var(--ds-color-accent-base-hover);
|
|
138
|
-
--dsc-removable-chip-xmark-color: var(--ds-color-neutral-contrast-default);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
119
|
+
/* Only use hover for non-touch devices to prevent sticky-hovering */
|
|
120
|
+
@media (hover: hover) and (pointer: fine) {
|
|
121
|
+
.ds-chip--button:not(:disabled, [aria-disabled='true']):hover {
|
|
122
|
+
--dsc-chip-background: var(--ds-color-accent-surface-hover);
|
|
123
|
+
--dsc-chip-text-color: var(--ds-color-neutral-text-default);
|
|
124
|
+
--dsc-chip-border: var(--ds-color-accent-border-default);
|
|
141
125
|
|
|
142
|
-
|
|
143
|
-
.ds-chip--button:not(:disabled, [aria-disabled='true']):active,
|
|
144
|
-
.ds-chip--removable:is([aria-pressed='true']),
|
|
145
|
-
.ds-chip--removable:not(:disabled, [aria-disabled='true']):active {
|
|
146
|
-
--dsc-chip-background: var(--ds-color-accent-base-active);
|
|
147
|
-
--dsc-chip-text-color: var(--ds-color-neutral-contrast-default);
|
|
148
|
-
--dsc-chip-border: var(--ds-color-accent-base-active);
|
|
149
|
-
--dsc-removable-background: var(--ds-color-accent-base-active);
|
|
150
|
-
--dsc-removable-text-color: var(--ds-color-neutral-contrast-default);
|
|
126
|
+
cursor: pointer;
|
|
151
127
|
}
|
|
152
128
|
|
|
153
|
-
.ds-chip--
|
|
154
|
-
--dsc-chip-
|
|
155
|
-
--dsc-chip-
|
|
156
|
-
--dsc-removable-chip-xmark-size: var(--ds-sizing-5);
|
|
157
|
-
--dsc-removable-chip-xmark-padding_right: var(--ds-spacing-1);
|
|
129
|
+
.ds-chip--button:not(:disabled, [aria-disabled='true']):is([aria-pressed='true']):hover {
|
|
130
|
+
--dsc-chip-background: var(--ds-color-accent-surface-hover);
|
|
131
|
+
--dsc-chip-text-color: var(--ds-color-neutral-text-default);
|
|
158
132
|
}
|
|
159
133
|
|
|
160
|
-
.ds-chip--
|
|
161
|
-
|
|
162
|
-
--dsc-
|
|
163
|
-
--dsc-removable-chip-xmark-
|
|
164
|
-
--dsc-removable-chip-xmark-padding_right: var(--ds-spacing-2);
|
|
134
|
+
.ds-chip--removable:not(:disabled, [aria-disabled='true']):hover,
|
|
135
|
+
.ds-chip--removable:not(:disabled, [aria-disabled='true']):focus {
|
|
136
|
+
--dsc-removable-background: var(--ds-color-accent-base-hover);
|
|
137
|
+
--dsc-removable-chip-xmark-color: var(--ds-color-neutral-contrast-default);
|
|
165
138
|
}
|
|
139
|
+
}
|
|
166
140
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
141
|
+
.ds-chip--button:is([aria-pressed='true']),
|
|
142
|
+
.ds-chip--button:not(:disabled, [aria-disabled='true']):active,
|
|
143
|
+
.ds-chip--removable:is([aria-pressed='true']),
|
|
144
|
+
.ds-chip--removable:not(:disabled, [aria-disabled='true']):active {
|
|
145
|
+
--dsc-chip-background: var(--ds-color-accent-base-active);
|
|
146
|
+
--dsc-chip-text-color: var(--ds-color-neutral-contrast-default);
|
|
147
|
+
--dsc-chip-border: var(--ds-color-accent-base-active);
|
|
148
|
+
--dsc-removable-background: var(--ds-color-accent-base-active);
|
|
149
|
+
--dsc-removable-text-color: var(--ds-color-neutral-contrast-default);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.ds-chip--sm {
|
|
153
|
+
--dsc-chip-height: var(--ds-sizing-7);
|
|
154
|
+
--dsc-chip-padding: 0 var(--ds-spacing-3);
|
|
155
|
+
--dsc-removable-chip-xmark-size: var(--ds-sizing-5);
|
|
156
|
+
--dsc-removable-chip-xmark-padding_right: var(--ds-spacing-1);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ds-chip--md {
|
|
160
|
+
--dsc-chip-height: var(--ds-sizing-8);
|
|
161
|
+
--dsc-chip-padding: 0 var(--ds-spacing-3);
|
|
162
|
+
--dsc-removable-chip-xmark-size: var(--ds-sizing-6);
|
|
163
|
+
--dsc-removable-chip-xmark-padding_right: var(--ds-spacing-2);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ds-chip--lg {
|
|
167
|
+
--dsc-chip-height: var(--ds-sizing-9);
|
|
168
|
+
--dsc-chip-padding: 0 var(--ds-spacing-4);
|
|
169
|
+
--dsc-removable-chip-xmark-size: var(--ds-sizing-7);
|
|
170
|
+
--dsc-removable-chip-xmark-padding_right: var(--ds-spacing-3);
|
|
173
171
|
}
|