@danske/sapphire-css 42.0.0 → 43.0.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.
@@ -0,0 +1,50 @@
1
+ .sapphire-breadcrumbs {
2
+ display: flex;
3
+ align-items: center;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+
8
+ .sapphire-breadcrumbs .sapphire-breadcrumbs__item {
9
+ display: flex;
10
+ align-items: center;
11
+ min-width: 0;
12
+ white-space: nowrap;
13
+ }
14
+
15
+ .sapphire-breadcrumbs__item * {
16
+ max-width: var(--sapphire-global-size-generic-480);
17
+ }
18
+
19
+ .sapphire-breadcrumbs .sapphire-breadcrumbs__item:last-child {
20
+ padding: 0 var(--sapphire-semantic-size-spacing-lg);
21
+ }
22
+
23
+ .sapphire-breadcrumbs.sapphire-breadcrumbs--sm
24
+ .sapphire-breadcrumbs__item:last-child {
25
+ padding: 0
26
+ calc(
27
+ var(--sapphire-semantic-size-spacing-xs) +
28
+ var(--sapphire-semantic-size-spacing-2xs)
29
+ );
30
+ }
31
+
32
+ .sapphire-breadcrumbs.sapphire-breadcrumbs--lg
33
+ .sapphire-breadcrumbs__item:last-child {
34
+ padding: 0
35
+ calc(
36
+ var(--sapphire-semantic-size-spacing-xs) +
37
+ var(--sapphire-semantic-size-spacing-md)
38
+ );
39
+ }
40
+
41
+ /**
42
+ * Breadcrumb separator
43
+ */
44
+ .sapphire-breadcrumbs__separator {
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ color: var(--sapphire-semantic-color-foreground-primary);
49
+ padding: 0 var(--sapphire-semantic-size-spacing-xs);
50
+ }
@@ -0,0 +1,9 @@
1
+ declare const styles: {
2
+ readonly "sapphire-breadcrumbs": string;
3
+ readonly "sapphire-breadcrumbs__item": string;
4
+ readonly "sapphire-breadcrumbs--sm": string;
5
+ readonly "sapphire-breadcrumbs--lg": string;
6
+ readonly "sapphire-breadcrumbs__separator": string;
7
+ };
8
+ export = styles;
9
+
@@ -170,7 +170,7 @@ a.sapphire-button {
170
170
  color: var(--sapphire-semantic-color-foreground-action-on-secondary-active);
171
171
  }
172
172
 
173
- /* ## Tertiary (undocumented) */
173
+ /* ## Tertiary */
174
174
  .sapphire-button--tertiary {
175
175
  background: var(--sapphire-semantic-color-background-action-tertiary-default);
176
176
  color: var(--sapphire-semantic-color-foreground-action-on-tertiary-default);
@@ -215,12 +215,16 @@ a.sapphire-button {
215
215
  .sapphire-button--text:not(:disabled):not(.is-disabled):not(:active):not(
216
216
  .is-active
217
217
  ).is-hover {
218
+ text-decoration: underline;
219
+ text-decoration-thickness: var(--sapphire-semantic-size-border-sm);
218
220
  color: var(--sapphire-semantic-color-foreground-action-link-hover);
219
221
  }
220
222
 
221
223
  .sapphire-button--text:not(:disabled):not(.is-disabled).is-active,
222
224
  .sapphire-button--text:not(:disabled):not(.is-disabled):active,
223
225
  .sapphire-button--text:not(:disabled):not(.is-disabled):focus-visible:active {
226
+ text-decoration: underline;
227
+ text-decoration-thickness: var(--sapphire-semantic-size-border-sm);
224
228
  color: var(--sapphire-semantic-color-foreground-action-link-active);
225
229
  }
226
230
 
@@ -92,17 +92,17 @@
92
92
  }
93
93
 
94
94
  .sapphire-calendar__table--with-week-numbers th:first-child {
95
- padding-right: var(--sapphire-semantic-size-spacing-2xs);
95
+ padding-right: var(--sapphire-semantic-size-spacing-xs);
96
96
  border-right: var(--sapphire-semantic-size-border-sm) solid
97
97
  var(--sapphire-semantic-color-border-secondary);
98
98
  }
99
99
 
100
100
  .sapphire-calendar__table--with-week-numbers th:first-child + td {
101
- padding-left: var(--sapphire-semantic-size-spacing-2xs);
101
+ padding-left: var(--sapphire-semantic-size-spacing-xs);
102
102
  }
103
103
 
104
104
  .sapphire-calendar__table-head-cell {
105
- height: var(--sapphire-semantic-size-height-control-sm);
105
+ height: var(--sapphire-semantic-size-height-control-md);
106
106
  text-align: center;
107
107
  padding: 0;
108
108
  }
@@ -117,12 +117,12 @@
117
117
  position: relative;
118
118
  display: flex;
119
119
  flex-direction: column;
120
- gap: var(--sapphire-semantic-size-spacing-md);
120
+ gap: var(--sapphire-semantic-size-spacing-sm);
121
121
  border-left: var(--sapphire-semantic-size-border-sm) solid
122
122
  var(--sapphire-semantic-color-border-secondary);
123
- margin-left: var(--sapphire-semantic-size-spacing-md);
123
+ margin-left: var(--sapphire-semantic-size-spacing-sm);
124
124
  padding-top: var(--sapphire-semantic-size-spacing-2xs);
125
- padding-left: var(--sapphire-semantic-size-spacing-xl);
125
+ padding-left: var(--sapphire-semantic-size-spacing-lg);
126
126
  padding-right: var(--sapphire-semantic-size-spacing-4xs);
127
127
  }
128
128
 
@@ -160,7 +160,7 @@
160
160
  }
161
161
 
162
162
  .sapphire-calendar__button .sapphire-calendar__button-text {
163
- font-size: var(--sapphire-semantic-size-font-body-sm);
163
+ font-size: var(--sapphire-semantic-size-font-body-md);
164
164
  color: var(--sapphire-semantic-color-foreground-primary);
165
165
  font-weight: var(--sapphire-semantic-font-weight-default-regular);
166
166
  background: var(--sapphire-semantic-color-background-action-tertiary-default);
@@ -176,6 +176,12 @@
176
176
  padding: 0 var(--sapphire-semantic-size-spacing-lg);
177
177
  }
178
178
 
179
+ .sapphire-calendar__table-container--md
180
+ .sapphire-calendar__button
181
+ .sapphire-calendar__button-text {
182
+ font-size: var(--sapphire-semantic-size-font-body-sm);
183
+ }
184
+
179
185
  .sapphire-calendar__header-title {
180
186
  font-weight: var(--sapphire-semantic-font-weight-default-medium);
181
187
  font-size: var(--sapphire-semantic-size-font-body-md);
@@ -287,7 +287,7 @@
287
287
  cursor: not-allowed;
288
288
  }
289
289
 
290
- .sapphire-checkbox.is-disabled .sapphire-checkbox__box,
291
- .sapphire-checkbox.is-disabled .sapphire-checkbox__label {
290
+ .sapphire-checkbox.is-disabled,
291
+ .sapphire-checkbox:has(:disabled) {
292
292
  opacity: var(--sapphire-semantic-opacity-disabled);
293
293
  }
@@ -33,8 +33,8 @@
33
33
  var(--sapphire-dateField-icon-size);
34
34
 
35
35
  height: var(--sapphire-semantic-size-height-control-lg);
36
- border-radius: var(--sapphire-semantic-size-radius-sm);
37
- padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-lg);
36
+ border-radius: var(--sapphire-semantic-size-radius-md);
37
+ padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-md);
38
38
  border: var(--sapphire-semantic-size-border-sm) solid
39
39
  var(--sapphire-semantic-color-border-field-default);
40
40
  background: var(--sapphire-semantic-color-background-field);
@@ -46,6 +46,10 @@
46
46
  var(--sapphire-dateField-icon-size);
47
47
  }
48
48
 
49
+ .sapphire-date-field--no-calendar {
50
+ padding-left: var(--sapphire-semantic-size-spacing-control-horizontal-lg);
51
+ }
52
+
49
53
  .sapphire-date-field--no-clear-button {
50
54
  grid-template-columns:
51
55
  var(--sapphire-dateField-icon-size)
@@ -56,14 +60,6 @@
56
60
  grid-template-columns: 1fr;
57
61
  }
58
62
 
59
- .sapphire-date-field--md {
60
- --sapphire-dateField-icon-size: var(--sapphire-semantic-size-icon-sm);
61
-
62
- height: var(--sapphire-semantic-size-height-control-md);
63
- padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-md);
64
- gap: var(--sapphire-semantic-size-spacing-xs);
65
- }
66
-
67
63
  .sapphire-date-field--range {
68
64
  width: var(--sapphire-global-size-generic-960);
69
65
  }
@@ -74,10 +70,6 @@
74
70
  align-items: center;
75
71
  }
76
72
 
77
- .sapphire-date-field--md .sapphire-date-field__input-group {
78
- gap: var(--sapphire-semantic-size-spacing-4xs);
79
- }
80
-
81
73
  .sapphire-date-field__input {
82
74
  display: flex;
83
75
  align-items: center;
@@ -95,10 +87,34 @@
95
87
  content: '—';
96
88
  }
97
89
 
90
+ /**
91
+ * Medium size
92
+ */
93
+ .sapphire-date-field--md {
94
+ --sapphire-dateField-icon-size: var(--sapphire-semantic-size-icon-sm);
95
+
96
+ height: var(--sapphire-semantic-size-height-control-md);
97
+ padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-md);
98
+ gap: var(--sapphire-semantic-size-spacing-xs);
99
+ border-radius: var(--sapphire-semantic-size-radius-sm);
100
+ }
101
+
102
+ .sapphire-date-field--md .sapphire-date-field__input-group {
103
+ gap: var(--sapphire-semantic-size-spacing-4xs);
104
+ }
105
+
98
106
  .sapphire-date-field--md .sapphire-date-field__input {
99
107
  font-size: var(--sapphire-semantic-size-font-control-md);
100
108
  }
101
109
 
110
+ /**
111
+ * Disabled
112
+ */
113
+ .sapphire-date-field.is-disabled {
114
+ cursor: not-allowed;
115
+ opacity: var(--sapphire-semantic-opacity-disabled);
116
+ }
117
+
102
118
  /**
103
119
  * Editable segments
104
120
  */
@@ -2,13 +2,13 @@ declare const styles: {
2
2
  readonly "sapphire-date-field": string;
3
3
  readonly "sapphire-date-field--no-calendar": string;
4
4
  readonly "sapphire-date-field--no-clear-button": string;
5
- readonly "sapphire-date-field--md": string;
6
5
  readonly "sapphire-date-field--range": string;
7
6
  readonly "sapphire-date-field__input-group": string;
8
7
  readonly "sapphire-date-field__input": string;
9
8
  readonly "sapphire-date-field__range-separator": string;
10
- readonly "sapphire-date-field__segment": string;
9
+ readonly "sapphire-date-field--md": string;
11
10
  readonly "is-disabled": string;
11
+ readonly "sapphire-date-field__segment": string;
12
12
  readonly "is-focus": string;
13
13
  readonly "sapphire-date-field__segment--filled": string;
14
14
  readonly "sapphire-date-field__segment--separator": string;
@@ -19,8 +19,8 @@
19
19
  }
20
20
 
21
21
  .sapphire-dialog {
22
- border-radius: var(--sapphire-semantic-size-radius-lg);
23
- background: var(--sapphire-semantic-color-background-surface);
22
+ border-radius: var(--sapphire-semantic-size-radius-2xl);
23
+ background: var(--sapphire-semantic-color-background-popover);
24
24
  font-family: var(--sapphire-semantic-font-name-default);
25
25
  color: var(--sapphire-semantic-color-foreground-primary);
26
26
  box-sizing: border-box;
@@ -1,5 +1,5 @@
1
1
  .sapphire-label {
2
- display: inline-flex;
2
+ display: flex;
3
3
  align-items: center;
4
4
  min-height: var(--sapphire-semantic-size-height-control-xs);
5
5
  line-height: var(--sapphire-semantic-size-line-height-md);
@@ -19,10 +19,11 @@
19
19
  cursor: pointer;
20
20
  border-radius: var(--sapphire-semantic-size-radius-xs);
21
21
 
22
- text-decoration-skip-ink: none;
23
-
24
22
  outline: none;
25
23
  color: var(--sapphire-semantic-color-foreground-action-link-default);
24
+
25
+ text-decoration: underline;
26
+ text-decoration-thickness: var(--sapphire-semantic-size-border-sm);
26
27
  }
27
28
 
28
29
  /* Disabled state for all variants */
@@ -156,10 +156,10 @@ instead of being applied on the list item itself */
156
156
  /*
157
157
  * Hover
158
158
  */
159
- .sapphire-list__item--interactive.is-hover:not(.is-active),
159
+ .sapphire-list__item--interactive.is-hover:not(.is-active):not(:has(.is-hover)),
160
160
  .sapphire-list__item--interactive:not(.js-hover):not(
161
161
  [aria-disabled='true']
162
- ):not(:disabled):not(:active):hover {
162
+ ):not(:disabled):not(:active):not(:has(:hover)):hover {
163
163
  background: var(--sapphire-semantic-color-background-action-tertiary-hover);
164
164
  }
165
165
 
@@ -182,13 +182,12 @@ instead of being applied on the list item itself */
182
182
 
183
183
  /* Active */
184
184
 
185
- .sapphire-list__item--interactive:not(.is-disabled).is-active,
185
+ .sapphire-list__item--interactive:not(.is-disabled).is-active:not(
186
+ :has(.is-active)
187
+ ),
186
188
  .sapphire-list__item--interactive:not([aria-disabled='true']):not(
187
189
  :disabled
188
- ):active,
189
- .sapphire-list__item--interactive:not([aria-disabled='true']):not(
190
- :disabled
191
- ):focus-visible:active {
190
+ ):not(:has(:active)):active {
192
191
  background-color: var(
193
192
  --sapphire-semantic-color-background-action-secondary-hover
194
193
  );
@@ -14,9 +14,12 @@
14
14
  .sapphire-modal-layout__header {
15
15
  display: flex;
16
16
  justify-content: space-between;
17
- padding: var(--sapphire-semantic-size-spacing-lg)
18
- var(--sapphire-semantic-size-spacing-container-horizontal-md);
17
+ padding: var(--sapphire-semantic-size-spacing-xl)
18
+ var(--sapphire-semantic-size-spacing-xl)
19
+ var(--sapphire-semantic-size-spacing-xl)
20
+ var(--sapphire-semantic-size-spacing-2xl);
19
21
  gap: var(--sapphire-semantic-size-spacing-sm);
22
+ min-height: var(--sapphire-semantic-size-height-control-md);
20
23
  }
21
24
 
22
25
  .sapphire-modal-layout__body {
@@ -41,10 +44,11 @@
41
44
  var(--sapphire-semantic-size-spacing-container-horizontal-md);
42
45
  }
43
46
 
44
- /** Container for heading and subheading **/
47
+ /**
48
+ * Container for heading and subheading
49
+ **/
45
50
  .sapphire-modal-layout__heading-container {
46
51
  flex: 1;
47
- padding: var(--sapphire-semantic-size-spacing-3xs) 0;
48
52
  display: flex;
49
53
  flex-direction: column;
50
54
  justify-content: center;
@@ -81,3 +85,36 @@
81
85
  border-top: var(--sapphire-semantic-size-border-sm) solid
82
86
  var(--sapphire-semantic-color-border-secondary);
83
87
  }
88
+
89
+ .sapphire-modal-layout__section {
90
+ margin: 0;
91
+ padding: 0;
92
+ border: none;
93
+ }
94
+
95
+ .sapphire-modal-layout__section-title {
96
+ margin-left: calc(
97
+ var(--sapphire-semantic-size-spacing-container-horizontal-md) * -1
98
+ );
99
+ width: calc(
100
+ 100% + (var(--sapphire-semantic-size-spacing-container-horizontal-md) * 2)
101
+ );
102
+ padding: 0 var(--sapphire-semantic-size-spacing-container-horizontal-md);
103
+ min-height: var(--sapphire-global-size-generic-100);
104
+ background-color: var(--sapphire-semantic-color-background-surface);
105
+ display: flex;
106
+ align-items: center;
107
+ position: sticky;
108
+ top: 0;
109
+ }
110
+
111
+ /*
112
+ * Fix for section semi-transparent background not looking good when scrolled.
113
+ */
114
+ .sapphire-modal-layout__section-title::before {
115
+ content: '';
116
+ background: var(--sapphire-semantic-color-background-neutral-subtle);
117
+ position: absolute;
118
+ inset: 0;
119
+ z-index: -1;
120
+ }
@@ -10,6 +10,8 @@ declare const styles: {
10
10
  readonly "sapphire-modal-layout__subheading": string;
11
11
  readonly "sapphire-modal-layout__body--scrolled": string;
12
12
  readonly "sapphire-modal-layout__body--scrollable": string;
13
+ readonly "sapphire-modal-layout__section": string;
14
+ readonly "sapphire-modal-layout__section-title": string;
13
15
  };
14
16
  export = styles;
15
17
 
@@ -9,7 +9,7 @@
9
9
  var(--sapphire-semantic-transitions-standard);
10
10
  transform: translateX(100%);
11
11
  width: var(--sapphire-semantic-size-width-panel-lg);
12
- background: var(--sapphire-semantic-color-background-surface);
12
+ background: var(--sapphire-semantic-color-background-popover);
13
13
  }
14
14
 
15
15
  .sapphire-panel--visible {
@@ -3,7 +3,7 @@
3
3
  height: 3px;
4
4
  width: 100%;
5
5
  overflow: hidden;
6
- background: var(--sapphire-semantic-color-background-accent-subtle);
6
+ background: var(--sapphire-semantic-color-background-progress-track);
7
7
  position: relative;
8
8
  }
9
9
 
@@ -14,7 +14,7 @@
14
14
  /* Progress bar Progress styles */
15
15
  .sapphire-progress--indicator {
16
16
  height: 100%;
17
- background: var(--sapphire-semantic-color-background-accent);
17
+ background: var(--sapphire-semantic-color-background-progress-fill);
18
18
  transition: width var(--sapphire-semantic-time-motion-default)
19
19
  var(--sapphire-semantic-transitions-dynamic);
20
20
  }
@@ -159,11 +159,7 @@
159
159
  cursor: not-allowed;
160
160
  }
161
161
 
162
- .sapphire-radio:not(.sapphire-radio--no-disabled)
163
- .sapphire-radio__input:disabled
164
- ~ .sapphire-radio__box,
165
- .sapphire-radio:not(.sapphire-radio--no-disabled)
166
- .sapphire-radio__input:disabled
167
- ~ .sapphire-radio__label {
162
+ .sapphire-radio .sapphire-radio__input:disabled ~ .sapphire-radio__box,
163
+ .sapphire-radio .sapphire-radio__input:disabled ~ .sapphire-radio__label {
168
164
  opacity: var(--sapphire-semantic-opacity-disabled);
169
165
  }
@@ -10,7 +10,6 @@ declare const styles: {
10
10
  readonly "js-hover": string;
11
11
  readonly "is-focus": string;
12
12
  readonly "js-focus": string;
13
- readonly "sapphire-radio--no-disabled": string;
14
13
  };
15
14
  export = styles;
16
15
 
@@ -24,7 +24,8 @@
24
24
  height: var(--sapphire-semantic-size-height-control-lg);
25
25
  box-sizing: border-box;
26
26
  cursor: pointer;
27
- padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-lg);
27
+ padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-md) 0
28
+ var(--sapphire-semantic-size-spacing-control-horizontal-lg);
28
29
  border: none;
29
30
  background: var(--sapphire-semantic-color-background-field);
30
31
  width: 100%;
@@ -34,11 +35,12 @@
34
35
  font-family: inherit;
35
36
  box-shadow: inset 0px 0px 0px var(--sapphire-semantic-size-border-sm)
36
37
  var(--sapphire-semantic-color-border-field-default);
37
- border-radius: var(--sapphire-semantic-size-radius-sm);
38
+ border-radius: var(--sapphire-semantic-size-radius-md);
38
39
  gap: var(--sapphire-semantic-size-spacing-sm);
39
40
  }
40
41
 
41
42
  .sapphire-select--md .sapphire-select__button {
43
+ border-radius: var(--sapphire-semantic-size-radius-sm);
42
44
  height: var(--sapphire-semantic-size-height-control-md);
43
45
  padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-md);
44
46
  gap: var(--sapphire-semantic-size-spacing-xs);
@@ -88,6 +90,11 @@
88
90
  color: var(--sapphire-semantic-color-foreground-secondary);
89
91
  }
90
92
 
93
+ .sapphire-select:not(.sapphire-select--md)
94
+ .sapphire-select__button:has(.sapphire-select__prefix) {
95
+ padding-left: var(--sapphire-semantic-size-spacing-control-horizontal-md);
96
+ }
97
+
91
98
  .sapphire-select--md .sapphire-select__prefix {
92
99
  font-size: var(--sapphire-semantic-size-font-control-md);
93
100
  }
@@ -153,4 +160,5 @@
153
160
 
154
161
  .sapphire-select.is-disabled .sapphire-select__button {
155
162
  cursor: not-allowed;
163
+ opacity: var(--sapphire-semantic-opacity-disabled);
156
164
  }
@@ -0,0 +1,64 @@
1
+ .sapphire-slider {
2
+ height: 100%;
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: var(--sapphire-semantic-size-spacing-xs);
6
+ justify-content: center;
7
+ width: fit-content;
8
+ }
9
+
10
+ .sapphire-slider__track {
11
+ position: relative;
12
+ width: var(--sapphire-semantic-size-width-field);
13
+ height: var(--sapphire-semantic-size-height-control-2xs);
14
+ touch-action: none;
15
+ }
16
+
17
+ .sapphire-slider__track-remaining {
18
+ content: '';
19
+ display: block;
20
+ position: absolute;
21
+ background: var(--sapphire-semantic-color-background-progress-track);
22
+ height: var(--sapphire-global-size-generic-10);
23
+ border-radius: var(--sapphire-semantic-size-radius-sm);
24
+ width: var(--sapphire-semantic-size-width-field);
25
+ top: 50%;
26
+ transform: translateY(-50%);
27
+ }
28
+
29
+ .sapphire-slider__track-fill {
30
+ position: absolute;
31
+ content: '';
32
+ display: block;
33
+ background: var(--sapphire-semantic-color-background-progress-fill);
34
+ height: var(--sapphire-global-size-generic-10);
35
+ border-radius: var(--sapphire-semantic-size-radius-sm);
36
+ width: 100%;
37
+ top: 50%;
38
+ transform: translateY(-50%);
39
+ }
40
+
41
+ .sapphire-slider__thumb {
42
+ position: absolute;
43
+ transform: translate(-50%, -50%);
44
+ top: 50%;
45
+ cursor: grab;
46
+ width: var(--sapphire-semantic-size-height-control-2xs);
47
+ height: var(--sapphire-semantic-size-height-control-2xs);
48
+ border-radius: var(--sapphire-semantic-size-radius-xl);
49
+ background: var(--sapphire-semantic-color-background-progress-fill);
50
+ forced-color-adjust: none;
51
+ }
52
+
53
+ /* focused */
54
+ .sapphire-slider__thumb.is-focus {
55
+ outline: var(--sapphire-semantic-size-focus-ring) solid
56
+ var(--sapphire-semantic-color-focus-ring);
57
+ outline-offset: var(--sapphire-semantic-size-focus-ring);
58
+ }
59
+
60
+ /* disabled */
61
+ .sapphire-slider__track[data-disabled='true'] {
62
+ opacity: var(--sapphire-semantic-opacity-disabled);
63
+ cursor: not-allowed;
64
+ }
@@ -0,0 +1,10 @@
1
+ declare const styles: {
2
+ readonly "sapphire-slider": string;
3
+ readonly "sapphire-slider__track": string;
4
+ readonly "sapphire-slider__track-remaining": string;
5
+ readonly "sapphire-slider__track-fill": string;
6
+ readonly "sapphire-slider__thumb": string;
7
+ readonly "is-focus": string;
8
+ };
9
+ export = styles;
10
+
@@ -463,7 +463,6 @@ th.sapphire-table__selectionCell:first-child {
463
463
  .sapphire-table__footer {
464
464
  position: relative;
465
465
  z-index: 2; /* Setting to two because body rows are positioned relative */
466
- margin-top: var(--sapphire-semantic-size-spacing-2xs);
467
466
  }
468
467
 
469
468
  .sapphire-table__footer--sticky {
@@ -61,7 +61,7 @@
61
61
  margin-top: 0px;
62
62
  margin-bottom: 0px;
63
63
  line-height: var(--sapphire-global-size-line-height-sm);
64
- letter-spacing: -1%;
64
+ letter-spacing: -0.01em;
65
65
  }
66
66
 
67
67
  .sapphire-text--heading-2xl {
@@ -6,7 +6,7 @@
6
6
  overflow-x: hidden;
7
7
  display: flex;
8
8
  align-items: center;
9
- border-radius: var(--sapphire-semantic-size-radius-sm);
9
+ border-radius: var(--sapphire-semantic-size-radius-md);
10
10
  cursor: text;
11
11
  color: var(--sapphire-semantic-color-foreground-primary);
12
12
  background: var(--sapphire-semantic-color-background-field);
@@ -29,6 +29,7 @@
29
29
  }
30
30
 
31
31
  .sapphire-text-field--md {
32
+ border-radius: var(--sapphire-semantic-size-radius-sm);
32
33
  height: var(--sapphire-semantic-size-height-control-md);
33
34
  font-size: var(--sapphire-semantic-size-font-control-md);
34
35
  }
@@ -95,7 +96,8 @@
95
96
  color: var(--sapphire-semantic-color-foreground-secondary);
96
97
  flex-shrink: 0;
97
98
  z-index: 1;
98
- margin-left: var(--sapphire-semantic-size-spacing-control-horizontal-lg);
99
+ /* the margin below is "md" on purpose - only when there's a prefix/postfix */
100
+ margin-left: var(--sapphire-semantic-size-spacing-control-horizontal-md);
99
101
  }
100
102
 
101
103
  .sapphire-text-field--md .sapphire-text-field__prefix {
@@ -115,7 +117,8 @@
115
117
  color: var(--sapphire-semantic-color-foreground-secondary);
116
118
  flex-shrink: 0;
117
119
  z-index: 1;
118
- margin-right: var(--sapphire-semantic-size-spacing-control-horizontal-lg);
120
+ /* the margin below is "md" on purpose - only when there's a prefix/postfix */
121
+ margin-right: var(--sapphire-semantic-size-spacing-control-horizontal-md);
119
122
  }
120
123
 
121
124
  .sapphire-text-field--md .sapphire-text-field__postfix {
@@ -191,6 +194,14 @@
191
194
  var(--sapphire-semantic-color-border-negative-default);
192
195
  }
193
196
 
197
+ /**
198
+ * Disabled
199
+ */
200
+ .sapphire-text-field:has([disabled]) {
201
+ cursor: not-allowed;
202
+ opacity: var(--sapphire-semantic-opacity-disabled);
203
+ }
204
+
194
205
  /**
195
206
  * Hover
196
207
  */
@@ -224,7 +235,7 @@
224
235
  * or focusing on the list of browser autofilling suggestions.
225
236
  */
226
237
  box-shadow: 0 0 0 var(--sapphire-semantic-size-height-control-lg) inset
227
- var(--sapphire-semantic-color-background-surface) !important;
238
+ var(--sapphire-semantic-color-background-field) !important;
228
239
  }
229
240
 
230
241
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-css",
3
- "version": "42.0.0",
3
+ "version": "43.0.0",
4
4
  "description": "CSS implementation of the Sapphire Design System from Danske Bank A/S",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -67,7 +67,7 @@
67
67
  "typescript": "~4.6.4"
68
68
  },
69
69
  "dependencies": {
70
- "@danske/sapphire-design-tokens": "^42.1.1"
70
+ "@danske/sapphire-design-tokens": "^42.2.1"
71
71
  },
72
- "gitHead": "afb5a25463f39012c3599e6242c8d308786d11e1"
72
+ "gitHead": "5447ed85a23a82d6d7339a1617296a648256ea3e"
73
73
  }