@swisspost/design-system-styles 6.6.2 → 6.6.4

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.
@@ -64,6 +64,12 @@
64
64
  }
65
65
  }
66
66
 
67
+ &:disabled {
68
+ ~ label {
69
+ color: forms.$input-disabled-color;
70
+ }
71
+ }
72
+
67
73
  &[type='file'] {
68
74
  &:focus,
69
75
  &:not(:placeholder-shown) {
@@ -159,7 +159,7 @@
159
159
  border: form-check.$form-check-input-border-width solid CanvasText;
160
160
 
161
161
  &:checked {
162
- background-color: CanvasText;
162
+ background-color: SelectedItem;
163
163
  }
164
164
 
165
165
  &::after,
@@ -8,6 +8,7 @@
8
8
 
9
9
  .tab-title[role='tab'] {
10
10
  display: inline-block;
11
+ cursor: pointer;
11
12
  position: relative;
12
13
  box-sizing: border-box;
13
14
  padding: nav.$nav-link-padding;
@@ -18,6 +19,7 @@
18
19
  opacity: 0.7;
19
20
  color: var(--post-contrast-color);
20
21
  text-decoration: none;
22
+ background-color: var(--post-contrast-color-inverted);
21
23
 
22
24
  &:focus {
23
25
  background-color: unset;
@@ -26,16 +28,16 @@
26
28
 
27
29
  &:hover {
28
30
  opacity: 1;
29
- background-color: nav.$nav-tabs-link-active-bg;
30
- color: var(--post-contrast-color);
31
+ background-color: rgba(var(--post-contrast-color-rgb), 0.6);
32
+ color: var(--post-contrast-color-inverted);
31
33
  }
32
34
 
33
35
  // same styles as focus, can't use placeholder here because focus-visible can't be described outside of the support condition
34
36
  &:focus-visible {
35
37
  outline: transparent;
36
38
  opacity: 1;
37
- background-color: nav.$nav-tabs-link-active-bg;
38
- color: var(--post-contrast-color);
39
+ background-color: rgba(var(--post-contrast-color-rgb), 0.6);
40
+ color: var(--post-contrast-color-inverted);
39
41
  box-shadow: none;
40
42
 
41
43
  &::after {
@@ -55,7 +57,7 @@
55
57
  border-right-color: nav.$nav-tabs-border-color;
56
58
  border-left-color: nav.$nav-tabs-border-color;
57
59
  opacity: 1;
58
- background-color: nav.$nav-tabs-link-active-bg;
60
+ background-color: var(--post-contrast-color-inverted);
59
61
  color: var(--post-contrast-color);
60
62
  font-weight: 700;
61
63
 
@@ -9,7 +9,10 @@
9
9
  position: relative;
10
10
  padding-top: spacing.$spacer;
11
11
  border: 0;
12
- background-color: color.$gray-background-light;
12
+ background-color: rgba(
13
+ var(--post-contrast-color-rgb),
14
+ 0.02
15
+ ); // 0.02 gets as close as possible to color.$gray-background-light on white background
13
16
 
14
17
  // Create a line that lies below the active but above the passive elements
15
18
  // This way hover works smoothly with the background color
@@ -55,7 +58,7 @@
55
58
  }
56
59
 
57
60
  .tab-content {
58
- margin-block: spacing.$spacer;
61
+ padding-top: spacing.$spacer;
59
62
  }
60
63
 
61
64
  // Careful, this generates a lot of code
@@ -91,6 +91,8 @@ fieldset {
91
91
  }
92
92
 
93
93
  &-footer {
94
+ color: var(--post-contrast-color);
95
+
94
96
  cite {
95
97
  @extend %font-curve-small;
96
98
  font-weight: type.$blockquote-cite-font-weight;