@oslokommune/punkt-css 16.7.6 → 16.8.2

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.7/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/16.8/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -37,7 +37,7 @@ pkt-tab-item {
37
37
  align-items: center;
38
38
  gap: 0.5rem;
39
39
  padding: 0.75rem 1rem;
40
- color: var(--pkt-color-text-action-disabled);
40
+ color: var(--pkt-color-text-action-normal);
41
41
  border-bottom: 0.25rem solid transparent;
42
42
  white-space: nowrap;
43
43
  @include typography.get-text('pkt-txt-16');
@@ -47,37 +47,60 @@ pkt-tab-item {
47
47
  --fg-color: currentColor;
48
48
  }
49
49
  &,
50
- &:hover,
51
- &:active {
52
- text-decoration: none;
53
- }
54
- &:focus:not(:active),
55
- &:focus-visible:not(:active) {
56
- border: 0;
57
- box-shadow: none;
58
- background-color: var(--pkt-tabs-bg);
59
- outline: 0.25rem solid var(--pkt-color-border-states-focus);
60
- outline-offset: 0;
61
- }
62
- &.active:focus,
63
- &.active:focus-visible {
64
- box-shadow: none;
65
- border-bottom: 0.25rem solid var(--pkt-color-border-blue);
66
- }
50
+ &:link,
51
+ &:visited,
67
52
  &:hover,
68
53
  &:focus,
69
54
  &:focus-visible,
70
- &:focus-visible:is(:active),
71
- &:focus:is(:active),
72
55
  &:active {
73
- outline: 0;
74
- color: var(--pkt-color-text-action-active);
75
- border-bottom: 0.25rem solid var(--pkt-color-border-states-hover);
56
+ text-decoration: none !important;
57
+ }
58
+
59
+ &.pkt-tabs__item--disabled,
60
+ &:disabled {
61
+ color: var(--pkt-color-text-action-disabled);
62
+ border-bottom-color: transparent;
63
+ cursor: not-allowed;
64
+
65
+ &:hover,
66
+ &:focus,
67
+ &:focus-visible,
68
+ &:active {
69
+ color: var(--pkt-color-text-action-disabled);
70
+ border-bottom-color: transparent;
71
+ outline: 0;
72
+ }
76
73
  }
77
- &.active {
78
- color: var(--pkt-color-text-action-normal);
79
- border-bottom: 0.25rem solid var(--pkt-color-border-blue);
80
- @include typography.get-text('pkt-txt-16-medium');
74
+
75
+ // Prevent disabled tabs from inheriting interactive styles.
76
+ &:not(.pkt-tabs__item--disabled):not(:disabled) {
77
+ &:focus:not(:active),
78
+ &:focus-visible:not(:active) {
79
+ border: 0;
80
+ box-shadow: none;
81
+ background-color: var(--pkt-tabs-bg);
82
+ outline: 0.25rem solid var(--pkt-color-border-states-focus);
83
+ outline-offset: 0;
84
+ }
85
+
86
+ &.active:focus,
87
+ &.active:focus-visible {
88
+ box-shadow: none;
89
+ border-bottom: 0.25rem solid var(--pkt-color-border-blue);
90
+ }
91
+
92
+ &:hover,
93
+ &:active {
94
+ outline: 0;
95
+ color: var(--pkt-color-text-action-active);
96
+ border-bottom: 0.25rem solid var(--pkt-color-border-states-hover);
97
+ }
98
+
99
+ &.active {
100
+ color: var(--pkt-color-text-action-normal);
101
+ border-bottom: 0.25rem solid var(--pkt-color-border-blue);
102
+ @include typography.get-text('pkt-txt-16-medium');
103
+ }
81
104
  }
82
105
  }
83
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "16.7.6",
3
+ "version": "16.8.2",
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": "208f11c3292166c3bbb6a40a1a1635a23e870b78"
63
+ "gitHead": "1ff7d19b9d19c3b3e810dcee4bc3bd1d3fcc3610"
64
64
  }