@oslokommune/punkt-css 17.0.7 → 17.0.10

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 (36) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/css/components/combobox.css +12 -18
  3. package/dist/css/components/combobox.min.css +1 -1
  4. package/dist/css/components/tag.css +61 -45
  5. package/dist/css/components/tag.min.css +1 -1
  6. package/dist/css/pkt-base.css +106 -107
  7. package/dist/css/pkt-base.min.css +1 -1
  8. package/dist/css/pkt-components.css +73 -629
  9. package/dist/css/pkt-components.min.css +1 -1
  10. package/dist/css/pkt-docs.css +207 -441
  11. package/dist/css/pkt-docs.min.css +1 -1
  12. package/dist/css/pkt-elements.css +26 -72
  13. package/dist/css/pkt-elements.min.css +1 -1
  14. package/dist/css/pkt.css +207 -441
  15. package/dist/css/pkt.layer.css +24474 -0
  16. package/dist/css/pkt.layer.min.css +1 -0
  17. package/dist/css/pkt.min.css +1 -1
  18. package/dist/scss/base/_defaults.scss +5 -0
  19. package/dist/scss/base/_index.scss +1 -0
  20. package/dist/scss/base/_link.scss +136 -0
  21. package/dist/scss/base/_typography.scss +0 -139
  22. package/dist/scss/components/_combobox.scss +40 -41
  23. package/dist/scss/components/_index.scss +0 -2
  24. package/dist/scss/components/_tag.scss +37 -0
  25. package/dist/scss/elements/_index.scss +0 -1
  26. package/dist/scss/pkt.layer.scss +8 -0
  27. package/package.json +2 -2
  28. package/dist/css/components/preview.css +0 -180
  29. package/dist/css/components/preview.min.css +0 -1
  30. package/dist/css/components/textinput.css +0 -385
  31. package/dist/css/components/textinput.min.css +0 -1
  32. package/dist/css/elements/select.css +0 -419
  33. package/dist/css/elements/select.min.css +0 -1
  34. package/dist/scss/components/_preview.scss +0 -191
  35. package/dist/scss/components/_textinput.scss +0 -13
  36. package/dist/scss/elements/_select.scss +0 -13
@@ -39,3 +39,8 @@ body {
39
39
  text-rendering: optimizeSpeed;
40
40
  scroll-behavior: smooth;
41
41
  }
42
+
43
+ // Slot-omslag i komponentene: skal ikke lage en boks av seg selv.
44
+ .pkt-contents {
45
+ display: contents;
46
+ }
@@ -5,6 +5,7 @@
5
5
 
6
6
  @forward 'defaults';
7
7
  @forward 'typography';
8
+ @forward 'link';
8
9
 
9
10
  @forward 'containers';
10
11
  @forward 'grid';
@@ -0,0 +1,136 @@
1
+ /*
2
+ * Link
3
+ */
4
+
5
+ @use '../abstracts/variables';
6
+
7
+ a,
8
+ .pkt-link-button {
9
+ // Order of pseudoclasses is important for specificity:
10
+ // link, visited, hover, focus, active
11
+ // but we don't use visited, so we can skip :link
12
+
13
+ color: var(--pkt-color-text-action-normal);
14
+ text-decoration: underline;
15
+ word-wrap: break-word;
16
+ cursor: pointer;
17
+
18
+ span {
19
+ color: inherit;
20
+ text-decoration: inherit;
21
+ }
22
+
23
+ // visited
24
+ &:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover) {
25
+ color: inherit;
26
+ }
27
+
28
+ // hover
29
+ &:hover,
30
+ &.pkt-link--hover {
31
+ color: var(--pkt-color-text-action-active);
32
+ text-decoration: underline;
33
+ svg {
34
+ --fg-color: currentColor;
35
+ }
36
+ }
37
+
38
+ // focus
39
+ &:focus-visible,
40
+ &.pkt-link--focus {
41
+ box-shadow:
42
+ 0px 0px 0px 0.125rem var(--pkt-color-text-action-active),
43
+ 0px 0px 0px 0.375rem var(--pkt-color-border-states-focus);
44
+ outline: none;
45
+ color: var(--pkt-color-text-action-active);
46
+ }
47
+
48
+ &:focus:not(:focus-visible) {
49
+ box-shadow: none;
50
+ outline: 0.125rem solid var(--pkt-color-text-action-active);
51
+ color: var(--pkt-color-text-action-active);
52
+ }
53
+
54
+ // active
55
+ &:active,
56
+ &.pkt-link--active {
57
+ color: var(--pkt-color-text-action-active);
58
+ }
59
+ }
60
+
61
+ .pkt-link {
62
+ display: inline;
63
+ text-align: left;
64
+ align-items: baseline;
65
+ }
66
+
67
+ .pkt-link {
68
+ &__icon {
69
+ --fg-color: currentColor;
70
+ width: 1.5rem;
71
+ height: 1.5rem;
72
+ flex-shrink: 0;
73
+ margin-inline: 0.25rem;
74
+ align-self: center;
75
+ }
76
+
77
+ &--icon-left,
78
+ &--icon-right {
79
+ display: inline-flex;
80
+ text-decoration: none;
81
+ align-items: baseline;
82
+ }
83
+
84
+ &--icon-left {
85
+ flex-direction: row;
86
+ }
87
+
88
+ &--icon-right {
89
+ flex-direction: row-reverse;
90
+ }
91
+
92
+ &--external::after {
93
+ display: inline-block;
94
+ content: ' ';
95
+ --svg: url(#{variables.$icon-path}/new-window-small.svg);
96
+ background-image: var(--svg);
97
+ background-repeat: no-repeat;
98
+ background-size: 18px 18px;
99
+ width: 1.125rem;
100
+ height: 1.125rem;
101
+ vertical-align: middle;
102
+ align-self: center;
103
+ }
104
+
105
+ &--external:hover::after {
106
+ // #1f42aa
107
+ filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%)
108
+ contrast(90%);
109
+ }
110
+ }
111
+
112
+ button.pkt-link {
113
+ background: none;
114
+ border: none;
115
+ padding: 0;
116
+ font-family: inherit;
117
+ cursor: pointer;
118
+ font-weight: inherit;
119
+ }
120
+
121
+ @at-root [data-mode='dark'] {
122
+ .pkt-link {
123
+ &--external::after {
124
+ // white
125
+ filter: brightness(0) saturate(100%) invert(100%);
126
+ }
127
+
128
+ &--external:hover::after,
129
+ &:hover:not(.pkt-btn) pkt-icon,
130
+ &:hover:not(.pkt-btn) .pkt-icon {
131
+ // #b3f5ff
132
+ filter: brightness(0) saturate(100%) invert(80%) sepia(54%) saturate(502%) hue-rotate(173deg) brightness(109%)
133
+ contrast(105%);
134
+ }
135
+ }
136
+ }
@@ -36,137 +36,6 @@ strong {
36
36
  font-weight: map.get(variables.$font-weight, 'medium');
37
37
  }
38
38
 
39
- a,
40
- .pkt-link-button {
41
- // Order of pseudoclasses is important for specificity:
42
- // link, visited, hover, focus, active
43
- // but we don't use visited, so we can skip :link
44
-
45
- color: var(--pkt-color-text-action-normal);
46
- text-decoration: underline;
47
- word-wrap: break-word;
48
- cursor: pointer;
49
-
50
- span {
51
- color: inherit;
52
- text-decoration: inherit;
53
- }
54
-
55
- // visited
56
- &:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover) {
57
- color: inherit;
58
- }
59
-
60
- // hover
61
- &:hover,
62
- &.pkt-link--hover {
63
- color: var(--pkt-color-text-action-active);
64
- text-decoration: underline;
65
- svg {
66
- --fg-color: currentColor;
67
- }
68
- }
69
-
70
- // focus
71
- &:focus-visible,
72
- &.pkt-link--focus {
73
- box-shadow:
74
- 0px 0px 0px 0.125rem var(--pkt-color-text-action-active),
75
- 0px 0px 0px 0.375rem var(--pkt-color-border-states-focus);
76
- outline: none;
77
- color: var(--pkt-color-text-action-active);
78
- }
79
-
80
- &:focus:not(:focus-visible) {
81
- box-shadow: none;
82
- outline: 0.125rem solid var(--pkt-color-text-action-active);
83
- color: var(--pkt-color-text-action-active);
84
- }
85
-
86
- // active
87
- &:active,
88
- &.pkt-link--active {
89
- color: var(--pkt-color-text-action-active);
90
- }
91
- }
92
-
93
- .pkt-link {
94
- display: inline;
95
- text-align: left;
96
- align-items: baseline;
97
- }
98
-
99
- .pkt-link {
100
- &__icon {
101
- --fg-color: currentColor;
102
- width: 1.5rem;
103
- height: 1.5rem;
104
- flex-shrink: 0;
105
- margin-inline: 0.25rem;
106
- align-self: center;
107
- }
108
-
109
- &--icon-left,
110
- &--icon-right {
111
- display: inline-flex;
112
- text-decoration: none;
113
- align-items: baseline;
114
- }
115
-
116
- &--icon-left {
117
- flex-direction: row;
118
- }
119
-
120
- &--icon-right {
121
- flex-direction: row-reverse;
122
- }
123
-
124
- &--external::after {
125
- display: inline-block;
126
- content: ' ';
127
- --svg: url(#{variables.$icon-path}/new-window-small.svg);
128
- background-image: var(--svg);
129
- background-repeat: no-repeat;
130
- background-size: 18px 18px;
131
- width: 1.125rem;
132
- height: 1.125rem;
133
- vertical-align: middle;
134
- align-self: center;
135
- }
136
-
137
- &--external:hover::after {
138
- // #1f42aa
139
- filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%)
140
- contrast(90%);
141
- }
142
- }
143
-
144
- button.pkt-link {
145
- background: none;
146
- border: none;
147
- padding: 0;
148
- font-family: inherit;
149
- cursor: pointer;
150
- font-weight: inherit;
151
- }
152
-
153
- @at-root [data-mode='dark'] {
154
- .pkt-link {
155
- &--external::after {
156
- // white
157
- filter: brightness(0) saturate(100%) invert(100%);
158
- }
159
-
160
- &--external:hover::after,
161
- &:hover:not(.pkt-btn) pkt-icon,
162
- &:hover:not(.pkt-btn) .pkt-icon {
163
- // #b3f5ff
164
- filter: brightness(0) saturate(100%) invert(80%) sepia(54%) saturate(502%) hue-rotate(173deg) brightness(109%)
165
- contrast(105%);
166
- }
167
- }
168
- }
169
-
170
39
  /*
171
40
  * origo typography
172
41
  * prefix pkt
@@ -213,11 +82,3 @@ button.pkt-link {
213
82
  .pkt-truncate-text {
214
83
  @include typography.truncate-text();
215
84
  }
216
-
217
- /*
218
- * Display contents and disregard layout
219
- */
220
- .pkt-display-contents,
221
- .pkt-contents {
222
- display: contents;
223
- }
@@ -228,56 +228,55 @@ pkt-combobox,
228
228
  .pkt-listbox__open {
229
229
  margin-block-start: $-box-separator;
230
230
  }
231
- }
232
-
233
- .pkt-inputwrapper:not([data-navtype='pointer']) .pkt-combobox__input:focus-within {
234
- outline: 4px solid var(--pkt-color-border-states-focus);
235
- }
231
+ &.pkt-inputwrapper:not([data-navtype='pointer']) .pkt-combobox__input:focus-within {
232
+ outline: 4px solid var(--pkt-color-border-states-focus);
233
+ }
236
234
 
237
- // Dropdown scale follows input wrapper size (small / xsmall combobox fields)
238
- .pkt-inputwrapper--small,
239
- .pkt-inputwrapper--xsmall {
240
- .pkt-listbox {
241
- .pkt-listbox__option:not(.pkt-listbox__search) {
242
- padding: map.get(variables.$spacing, 'size-8') map.get(variables.$spacing, 'size-16');
243
- @include typography.get-text('pkt-txt-16-light');
244
- }
235
+ // Dropdown scale follows input wrapper size (small / xsmall combobox fields)
236
+ &.pkt-inputwrapper--small,
237
+ &.pkt-inputwrapper--xsmall {
238
+ .pkt-listbox {
239
+ .pkt-listbox__option:not(.pkt-listbox__search) {
240
+ padding: map.get(variables.$spacing, 'size-8') map.get(variables.$spacing, 'size-16');
241
+ @include typography.get-text('pkt-txt-16-light');
242
+ }
245
243
 
246
- .pkt-listbox__empty,
247
- .pkt-listbox__banner {
248
- padding: map.get(variables.$spacing, 'size-8') map.get(variables.$spacing, 'size-16');
249
- @include typography.get-text('pkt-txt-16-light');
250
- }
244
+ .pkt-listbox__empty,
245
+ .pkt-listbox__banner {
246
+ padding: map.get(variables.$spacing, 'size-8') map.get(variables.$spacing, 'size-16');
247
+ @include typography.get-text('pkt-txt-16-light');
248
+ }
251
249
 
252
- .pkt-listbox__search input {
253
- padding: map.get(variables.$spacing, 'size-8') map.get(variables.$spacing, 'size-12');
254
- @include typography.get-text('pkt-txt-16-light');
250
+ .pkt-listbox__search input {
251
+ padding: map.get(variables.$spacing, 'size-8') map.get(variables.$spacing, 'size-12');
252
+ @include typography.get-text('pkt-txt-16-light');
253
+ }
255
254
  }
256
255
  }
257
- }
258
256
 
259
- .pkt-inputwrapper--xsmall {
260
- .pkt-listbox {
261
- .pkt-listbox__option:not(.pkt-listbox__search) {
262
- padding: map.get(variables.$spacing, 'size-6') map.get(variables.$spacing, 'size-12');
263
- @include typography.get-text('pkt-txt-14-light');
264
- }
257
+ &.pkt-inputwrapper--xsmall {
258
+ .pkt-listbox {
259
+ .pkt-listbox__option:not(.pkt-listbox__search) {
260
+ padding: map.get(variables.$spacing, 'size-6') map.get(variables.$spacing, 'size-12');
261
+ @include typography.get-text('pkt-txt-14-light');
262
+ }
265
263
 
266
- .pkt-listbox__empty,
267
- .pkt-listbox__banner {
268
- padding: map.get(variables.$spacing, 'size-6') map.get(variables.$spacing, 'size-12');
269
- @include typography.get-text('pkt-txt-14-light');
270
- }
264
+ .pkt-listbox__empty,
265
+ .pkt-listbox__banner {
266
+ padding: map.get(variables.$spacing, 'size-6') map.get(variables.$spacing, 'size-12');
267
+ @include typography.get-text('pkt-txt-14-light');
268
+ }
271
269
 
272
- .pkt-listbox__banner-icon,
273
- .pkt-listbox__search-icon .pkt-icon {
274
- width: 1.125rem;
275
- height: 1.125rem;
276
- }
270
+ .pkt-listbox__banner-icon,
271
+ .pkt-listbox__search-icon .pkt-icon {
272
+ width: 1.125rem;
273
+ height: 1.125rem;
274
+ }
277
275
 
278
- .pkt-listbox__search input {
279
- padding: map.get(variables.$spacing, 'size-6') map.get(variables.$spacing, 'size-8');
280
- @include typography.get-text('pkt-txt-14-light');
276
+ .pkt-listbox__search input {
277
+ padding: map.get(variables.$spacing, 'size-6') map.get(variables.$spacing, 'size-8');
278
+ @include typography.get-text('pkt-txt-14-light');
279
+ }
281
280
  }
282
281
  }
283
282
  }
@@ -24,7 +24,6 @@
24
24
  @forward 'loader';
25
25
  @forward 'modal';
26
26
  @forward 'messagebox';
27
- @forward 'preview';
28
27
  @forward 'progressbar';
29
28
  @forward 'searchinput';
30
29
  @forward 'skiplink';
@@ -33,6 +32,5 @@
33
32
  @forward 'tag';
34
33
  @forward 'tag';
35
34
  @forward 'teaserlist';
36
- @forward 'textinput';
37
35
  @forward 'textarea';
38
36
  @forward 'timepicker';
@@ -29,8 +29,22 @@ pkt-tag > .pkt-tag {
29
29
  display: flex;
30
30
  }
31
31
 
32
+ button.pkt-tag {
33
+ appearance: none;
34
+ border-radius: 0;
35
+ cursor: pointer;
36
+ font-family: inherit;
37
+ justify-content: center;
38
+ text-align: left;
39
+ text-decoration: none;
40
+ text-decoration-thickness: 1px;
41
+ text-underline-offset: 0.3em;
42
+ user-select: none;
43
+ }
44
+
32
45
  .pkt-tag {
33
46
  width: fit-content;
47
+ vertical-align: middle;
34
48
  background: var(--pkt-color-surface-default-light-blue);
35
49
  padding: 0 map.get(variables.$spacing, 'size-8');
36
50
  display: inline-flex;
@@ -51,6 +65,7 @@ pkt-tag > .pkt-tag {
51
65
  }
52
66
 
53
67
  &.pkt-btn:hover,
68
+ &:is(button):hover,
54
69
  &.pkt-tag--hover {
55
70
  background-color: var(--pkt-color-surface-strong-blue);
56
71
  color: var(--pkt-color-tag-text-hover);
@@ -63,6 +78,7 @@ pkt-tag > .pkt-tag {
63
78
  }
64
79
 
65
80
  &.pkt-btn:focus,
81
+ &:is(button):focus,
66
82
  &.pkt-tag--focus {
67
83
  background-color: var(--pkt-color-surface-strong-blue);
68
84
  border-color: var(--pkt-color-text-action-active);
@@ -75,6 +91,7 @@ pkt-tag > .pkt-tag {
75
91
  }
76
92
 
77
93
  &.pkt-btn:active,
94
+ &:is(button):active,
78
95
  &.pkt-tag--active,
79
96
  &.pkt-tag--active:hover {
80
97
  background-color: var(--pkt-color-surface-strong-blue);
@@ -103,6 +120,7 @@ pkt-tag > .pkt-tag {
103
120
  background: var(--pkt-color-surface-strong-light-green);
104
121
 
105
122
  &.pkt-btn:hover,
123
+ &:is(button):hover,
106
124
  &.pkt-tag--hover {
107
125
  background-color: var(--pkt-color-surface-strong-green);
108
126
  color: var(--pkt-color-tag-text-hover);
@@ -113,6 +131,7 @@ pkt-tag > .pkt-tag {
113
131
  }
114
132
 
115
133
  &.pkt-btn:focus,
134
+ &:is(button):focus,
116
135
  &.pkt-tag--focus {
117
136
  background-color: var(--pkt-color-surface-strong-green);
118
137
  color: var(--pkt-color-tag-text-focus);
@@ -123,6 +142,7 @@ pkt-tag > .pkt-tag {
123
142
  }
124
143
 
125
144
  &.pkt-btn:active,
145
+ &:is(button):active,
126
146
  &.pkt-tag--active {
127
147
  background-color: var(--pkt-color-surface-strong-green);
128
148
  color: var(--pkt-color-tag-text-active);
@@ -137,6 +157,7 @@ pkt-tag > .pkt-tag {
137
157
  background: var(--pkt-color-surface-default-yellow);
138
158
 
139
159
  &.pkt-btn:hover,
160
+ &:is(button):hover,
140
161
  &.pkt-tag--hover {
141
162
  background-color: var(--pkt-color-surface-strong-yellow);
142
163
  color: var(--pkt-color-tag-text-hover);
@@ -147,6 +168,7 @@ pkt-tag > .pkt-tag {
147
168
  }
148
169
 
149
170
  &.pkt-btn:focus,
171
+ &:is(button):focus,
150
172
  &.pkt-tag--focus {
151
173
  background-color: var(--pkt-color-surface-strong-yellow);
152
174
  color: var(--pkt-color-tag-text-focus);
@@ -157,6 +179,7 @@ pkt-tag > .pkt-tag {
157
179
  }
158
180
 
159
181
  &.pkt-btn:active,
182
+ &:is(button):active,
160
183
  &.pkt-tag--active {
161
184
  background-color: var(--pkt-color-surface-strong-yellow);
162
185
  color: var(--pkt-color-tag-text-active);
@@ -171,6 +194,7 @@ pkt-tag > .pkt-tag {
171
194
  background: var(--pkt-color-surface-default-red);
172
195
 
173
196
  &.pkt-btn:hover,
197
+ &:is(button):hover,
174
198
  &.pkt-tag--hover {
175
199
  background-color: var(--pkt-color-surface-strong-red);
176
200
  color: var(--pkt-color-tag-text-hover);
@@ -181,6 +205,7 @@ pkt-tag > .pkt-tag {
181
205
  }
182
206
 
183
207
  &.pkt-btn:focus,
208
+ &:is(button):focus,
184
209
  &.pkt-tag--focus {
185
210
  background-color: var(--pkt-color-surface-strong-red);
186
211
  color: var(--pkt-color-tag-text-focus);
@@ -191,6 +216,7 @@ pkt-tag > .pkt-tag {
191
216
  }
192
217
 
193
218
  &.pkt-btn:active,
219
+ &:is(button):active,
194
220
  &.pkt-tag--active {
195
221
  background-color: var(--pkt-color-surface-strong-red);
196
222
  color: var(--pkt-color-tag-text-active);
@@ -205,6 +231,7 @@ pkt-tag > .pkt-tag {
205
231
  background: var(--pkt-color-surface-default-light-beige);
206
232
 
207
233
  &.pkt-btn:hover,
234
+ &:is(button):hover,
208
235
  &.pkt-tag--hover {
209
236
  background-color: var(--pkt-color-surface-strong-beige);
210
237
  color: var(--pkt-color-tag-text-hover);
@@ -215,6 +242,7 @@ pkt-tag > .pkt-tag {
215
242
  }
216
243
 
217
244
  &.pkt-btn:focus,
245
+ &:is(button):focus,
218
246
  &.pkt-tag--focus {
219
247
  background-color: var(--pkt-color-surface-strong-beige);
220
248
  color: var(--pkt-color-tag-text-focus);
@@ -225,6 +253,7 @@ pkt-tag > .pkt-tag {
225
253
  }
226
254
 
227
255
  &.pkt-btn:active,
256
+ &:is(button):active,
228
257
  &.pkt-tag--active {
229
258
  background-color: var(--pkt-color-surface-strong-beige);
230
259
  color: var(--pkt-color-tag-text-active);
@@ -240,6 +269,7 @@ pkt-tag > .pkt-tag {
240
269
  background: var(--pkt-color-surface-default-gray);
241
270
 
242
271
  &.pkt-btn:hover,
272
+ &:is(button):hover,
243
273
  &.pkt-tag--hover {
244
274
  background-color: var(--pkt-color-surface-strong-gray);
245
275
  color: var(--pkt-color-tag-text-hover);
@@ -250,6 +280,7 @@ pkt-tag > .pkt-tag {
250
280
  }
251
281
 
252
282
  &.pkt-btn:focus,
283
+ &:is(button):focus,
253
284
  &.pkt-tag--focus {
254
285
  background-color: var(--pkt-color-surface-strong-gray);
255
286
  color: var(--pkt-color-tag-text-active);
@@ -260,6 +291,7 @@ pkt-tag > .pkt-tag {
260
291
  }
261
292
 
262
293
  &.pkt-btn:active,
294
+ &:is(button):active,
263
295
  &.pkt-tag--active {
264
296
  background-color: var(--pkt-color-surface-strong-gray);
265
297
  color: var(--pkt-color-tag-text-active);
@@ -274,6 +306,7 @@ pkt-tag > .pkt-tag {
274
306
  background: var(--pkt-color-surface-subtle-light-blue);
275
307
 
276
308
  &.pkt-btn:hover,
309
+ &:is(button):hover,
277
310
  &.pkt-tag--hover {
278
311
  background-color: var(--pkt-color-surface-strong-blue);
279
312
  color: var(--pkt-color-tag-text-hover);
@@ -284,6 +317,7 @@ pkt-tag > .pkt-tag {
284
317
  }
285
318
 
286
319
  &.pkt-btn:focus,
320
+ &:is(button):focus,
287
321
  &.pkt-tag--focus {
288
322
  background-color: var(--pkt-color-surface-strong-blue);
289
323
  color: var(--pkt-color-tag-text-focus);
@@ -294,6 +328,7 @@ pkt-tag > .pkt-tag {
294
328
  }
295
329
 
296
330
  &.pkt-btn:active,
331
+ &:is(button):active,
297
332
  &.pkt-tag--active {
298
333
  background-color: var(--pkt-color-surface-strong-blue);
299
334
  color: var(--pkt-color-tag-text-active);
@@ -310,7 +345,9 @@ pkt-tag > .pkt-tag {
310
345
  --fg-color: var(--pkt-color-brand-neutrals-200);
311
346
 
312
347
  &.pkt-btn:hover,
348
+ &:is(button):hover,
313
349
  &.pkt-btn:focus,
350
+ &:is(button):focus,
314
351
  &.pkt-tag--hover {
315
352
  background-color: var(--pkt-color-brand-warm-blue-1000) !important;
316
353
  color: var(--pkt-color-brand-neutrals-200) !important;
@@ -6,5 +6,4 @@
6
6
  @forward 'input';
7
7
  @forward 'list';
8
8
  @forward 'section';
9
- @forward 'select';
10
9
  @forward 'table';
@@ -0,0 +1,8 @@
1
+ @charset "utf-8";
2
+
3
+ @use 'sass:meta';
4
+
5
+ // meta.load-css, ikke @use, fordi @use ikke kan stå inne i @layer.
6
+ @layer punkt {
7
+ @include meta.load-css('pkt');
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "17.0.7",
3
+ "version": "17.0.10",
4
4
  "description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -62,5 +62,5 @@
62
62
  "dependencies": {
63
63
  "astro": "^7.2.0"
64
64
  },
65
- "gitHead": "d13f13397fd20b7d41aee384f6ae985b32d8b507"
65
+ "gitHead": "d7aa97ec38415ce31bd73314e4669ca2ba04a8cf"
66
66
  }