@oslokommune/punkt-css 16.15.0 → 16.16.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.
@@ -6,7 +6,7 @@
6
6
  @forward 'spacing';
7
7
 
8
8
  // Default icon path
9
- $icon-path: 'https://punkt-cdn.oslo.kommune.no/16.15/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/16.16/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -25,6 +25,7 @@
25
25
  @forward 'preview';
26
26
  @forward 'progressbar';
27
27
  @forward 'searchinput';
28
+ @forward 'skiplink';
28
29
  @forward 'stepper';
29
30
  @forward 'tabs';
30
31
  @forward 'tag';
@@ -0,0 +1,26 @@
1
+ @use '../abstracts/mixins/typography';
2
+
3
+ .pkt-skiplink {
4
+ display: block;
5
+ position: absolute;
6
+ left: -9999px;
7
+ top: auto;
8
+ width: 1px;
9
+ height: 1px;
10
+ overflow: hidden;
11
+ background-color: var(--pkt-color-background-default);
12
+ padding: 0.5rem 1rem;
13
+ z-index: 1000;
14
+ clip: rect(0, 0, 0, 0);
15
+ @include typography.get-text('pkt-txt-18-light');
16
+ &:focus,
17
+ &:focus-visible {
18
+ position: fixed;
19
+ left: 1rem;
20
+ top: 1rem;
21
+ width: auto;
22
+ height: auto;
23
+ overflow: visible;
24
+ clip: auto;
25
+ }
26
+ }
@@ -49,7 +49,6 @@ $-module-name: 'pkt-input-check';
49
49
  width: 1.5rem;
50
50
  height: 1.5rem;
51
51
  flex-shrink: 0;
52
- transition: all 0.3s ease-out;
53
52
 
54
53
  &[type='checkbox'] {
55
54
  border-radius: 0;
@@ -71,7 +70,6 @@ $-module-name: 'pkt-input-check';
71
70
  left: -1px;
72
71
  width: 1.5rem;
73
72
  border-radius: 0.75rem;
74
- transition: all 0.3s ease-out;
75
73
  }
76
74
  }
77
75
 
@@ -109,6 +107,14 @@ $-module-name: 'pkt-input-check';
109
107
  outline-color: var(--pkt-color-input-border-hover);
110
108
  }
111
109
 
110
+ &[type='radio']:focus-visible {
111
+ border: 3px solid var(--pkt-color-input-check-background);
112
+ outline: none;
113
+ box-shadow:
114
+ 0px 0px 0px 0.125rem var(--pkt-color-input-border-active),
115
+ 0px 0px 0px 0.375rem var(--pkt-color-border-states-focus);
116
+ }
117
+
112
118
  &:indeterminate {
113
119
  &[type='checkbox']:not([role='switch']) {
114
120
  --svg: url(#{variables.$icon-path}/minus-sign.svg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "16.15.0",
3
+ "version": "16.16.0",
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",
@@ -60,5 +60,5 @@
60
60
  "url": "https://github.com/oslokommune/punkt/issues"
61
61
  },
62
62
  "license": "MIT",
63
- "gitHead": "5147b31531bab9ff64963a1f091a717bb93d35cf"
63
+ "gitHead": "10f6a1f8951e4bbce37ff34f8ad4bcb836d922a7"
64
64
  }