@danske/sapphire-css 32.2.0 → 33.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.
- package/build/themes/cjs/default-dark.js +1 -1
- package/build/themes/cjs/default.js +2 -1
- package/build/themes/cjs/index.d.ts +2 -1
- package/build/themes/esm/default-dark.js +1 -1
- package/build/themes/esm/default.js +2 -1
- package/build/themes/esm/index.d.ts +2 -1
- package/components/accordion/accordion.module.css +38 -40
- package/components/avatar/avatar.module.css +61 -51
- package/components/avatar/avatar.module.css.d.ts +4 -4
- package/components/backdrop/backdrop.module.css +3 -3
- package/components/badge/badge.module.css +257 -135
- package/components/badge/badge.module.css.d.ts +3 -3
- package/components/button/button.module.css +200 -400
- package/components/button/button.module.css.d.ts +6 -7
- package/components/buttonGroup/buttonGroup.module.css +6 -6
- package/components/buttonGroup/buttonGroup.module.css.d.ts +2 -2
- package/components/calendar/calendar.module.css +90 -86
- package/components/checkbox/checkbox.module.css +59 -51
- package/components/checkbox/checkbox.module.css.d.ts +2 -2
- package/components/contextualHelp/contextualHelp.module.css +13 -10
- package/components/dateField/dateField.module.css +66 -64
- package/components/dateField/dateField.module.css.d.ts +1 -1
- package/components/dialog/dialog.module.css +13 -13
- package/components/dialog/dialog.module.css.d.ts +4 -4
- package/components/dropzone/dropzone.module.css +29 -23
- package/components/feedbackMessage/feedbackMessage.module.css +15 -15
- package/components/field/field.module.css +16 -16
- package/components/field/field.module.css.d.ts +1 -1
- package/components/fieldGroup/fieldGroup.module.css +4 -4
- package/components/fieldGroup/fieldGroup.module.css.d.ts +1 -1
- package/components/heading/heading.module.css +37 -85
- package/components/icon/icon.module.css +12 -12
- package/components/icon/icon.module.css.d.ts +4 -4
- package/components/iconButton/iconButton.module.css +130 -366
- package/components/iconButton/iconButton.module.css.d.ts +7 -8
- package/components/label/label.module.css +11 -11
- package/components/label/label.module.css.d.ts +1 -1
- package/components/labeledValue/labeledValue.module.css +7 -7
- package/components/labeledValue/labeledValue.module.css.d.ts +2 -2
- package/components/link/link.module.css +22 -22
- package/components/link/link.module.css.d.ts +2 -2
- package/components/list/list.module.css +41 -31
- package/components/listbox/listbox.module.css +80 -66
- package/components/listbox/listbox.module.css.d.ts +2 -2
- package/components/modalLayout/modalLayout.module.css +9 -11
- package/components/notificationBadge/notificationBadge.module.css +23 -25
- package/components/notificationBadge/notificationBadge.module.css.d.ts +3 -3
- package/components/pagination/pagination.module.css +16 -16
- package/components/panel/panel.module.css +4 -4
- package/components/panel/panel.module.css.d.ts +1 -1
- package/components/paragraph/paragraph.module.css +8 -8
- package/components/paragraph/paragraph.module.css.d.ts +2 -2
- package/components/popover/popover.module.css +6 -6
- package/components/radio/radio.module.css +32 -32
- package/components/radio/radio.module.css.d.ts +1 -1
- package/components/searchField/searchField.module.css +41 -45
- package/components/searchField/searchField.module.css.d.ts +1 -2
- package/components/segmentedControl/segmentedControl.module.css +33 -35
- package/components/segmentedControl/segmentedControl.module.css.d.ts +2 -2
- package/components/select/select.module.css +32 -32
- package/components/select/select.module.css.d.ts +1 -1
- package/components/skeleton/skeleton.module.css +6 -8
- package/components/spinner/spinner.module.css +22 -22
- package/components/spinner/spinner.module.css.d.ts +4 -4
- package/components/surface/surface.module.css +3 -7
- package/components/surface/surface.module.css.d.ts +0 -1
- package/components/switch/switch.module.css +45 -39
- package/components/switch/switch.module.css.d.ts +1 -1
- package/components/table/table.module.css +66 -54
- package/components/tabs/tabs.module.css +46 -45
- package/components/tabs/tabs.module.css.d.ts +2 -2
- package/components/tag/tag.module.css +32 -24
- package/components/text/text.module.css +48 -96
- package/components/textField/textField.module.css +78 -72
- package/components/textField/textField.module.css.d.ts +1 -1
- package/components/toast/toast.module.css +17 -19
- package/components/tooltip/tooltip.module.css +12 -12
- package/package.json +3 -3
- package/themes/default-dark.js +1 -1
- package/themes/default.js +2 -1
- package/themes/index.d.ts +2 -1
- package/build/themes/cjs/june-dark.d.ts +0 -5
- package/build/themes/cjs/june-dark.js +0 -13
- package/build/themes/cjs/june.d.ts +0 -5
- package/build/themes/cjs/june.js +0 -13
- package/build/themes/esm/june-dark.d.ts +0 -5
- package/build/themes/esm/june-dark.js +0 -8
- package/build/themes/esm/june.d.ts +0 -5
- package/build/themes/esm/june.js +0 -8
- package/themes/default-dark.css +0 -2
- package/themes/june-dark.css +0 -3
- package/themes/june-dark.d.ts +0 -5
- package/themes/june-dark.js +0 -13
- package/themes/june-dark.scss +0 -3
- package/themes/june.css +0 -3
- package/themes/june.d.ts +0 -5
- package/themes/june.js +0 -13
- package/themes/june.scss +0 -3
|
@@ -6,20 +6,19 @@ declare const styles: {
|
|
|
6
6
|
readonly "sapphire-icon-button__spinner": string;
|
|
7
7
|
readonly "sapphire-icon-button--loading": string;
|
|
8
8
|
readonly "sapphire-icon-button__icon": string;
|
|
9
|
-
readonly "sapphire-icon-button--primary
|
|
9
|
+
readonly "sapphire-icon-button--primary": string;
|
|
10
10
|
readonly "is-active": string;
|
|
11
11
|
readonly "js-hover": string;
|
|
12
12
|
readonly "is-hover": string;
|
|
13
|
-
readonly "sapphire-icon-button--secondary
|
|
14
|
-
readonly "sapphire-icon-button--secondary-surface": string;
|
|
13
|
+
readonly "sapphire-icon-button--secondary": string;
|
|
15
14
|
readonly "sapphire-icon-button--secondary-ghost": string;
|
|
16
|
-
readonly "sapphire-icon-button--tertiary
|
|
15
|
+
readonly "sapphire-icon-button--tertiary": string;
|
|
17
16
|
readonly "sapphire-icon-button--tertiary-ghost": string;
|
|
18
|
-
readonly "sapphire-icon-button--danger
|
|
17
|
+
readonly "sapphire-icon-button--danger": string;
|
|
19
18
|
readonly "sapphire-icon-button--danger-ghost": string;
|
|
20
|
-
readonly "sapphire-icon-button--
|
|
21
|
-
readonly "sapphire-icon-button--
|
|
22
|
-
readonly "sapphire-icon-button--
|
|
19
|
+
readonly "sapphire-icon-button--lg": string;
|
|
20
|
+
readonly "sapphire-icon-button--sm": string;
|
|
21
|
+
readonly "sapphire-icon-button--xs": string;
|
|
23
22
|
};
|
|
24
23
|
export = styles;
|
|
25
24
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
.sapphire-label {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
|
-
min-height: var(--sapphire-
|
|
5
|
-
line-height: var(--sapphire-
|
|
6
|
-
font-size: var(--sapphire-
|
|
7
|
-
gap: var(--sapphire-
|
|
4
|
+
min-height: var(--sapphire-semantic-size-height-control-xs);
|
|
5
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
6
|
+
font-size: var(--sapphire-semantic-size-font-label-md);
|
|
7
|
+
gap: var(--sapphire-semantic-size-spacing-10);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.sapphire-label--
|
|
11
|
-
line-height: var(--sapphire-
|
|
12
|
-
font-size: var(--sapphire-
|
|
13
|
-
min-height: var(--sapphire-
|
|
10
|
+
.sapphire-label--md {
|
|
11
|
+
line-height: var(--sapphire-semantic-size-line-height-sm);
|
|
12
|
+
font-size: var(--sapphire-semantic-size-font-label-sm);
|
|
13
|
+
min-height: var(--sapphire-semantic-size-height-control-2xs);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.sapphire-label__text {
|
|
17
|
-
font-weight: var(--sapphire-
|
|
18
|
-
color: var(--sapphire-
|
|
17
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
18
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.sapphire-label__required-indicator {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.sapphire-label__optional-indicator {
|
|
28
|
-
color: var(--sapphire-
|
|
28
|
+
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
readonly "sapphire-label": string;
|
|
3
|
-
readonly "sapphire-label--
|
|
3
|
+
readonly "sapphire-label--md": string;
|
|
4
4
|
readonly "sapphire-label__text": string;
|
|
5
5
|
readonly "sapphire-label__required-indicator": string;
|
|
6
6
|
readonly "sapphire-label__optional-indicator": string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.sapphire-labeled-value {
|
|
2
|
-
width: var(--sapphire-
|
|
3
|
-
line-height: var(--sapphire-
|
|
4
|
-
font-size: var(--sapphire-
|
|
2
|
+
width: var(--sapphire-semantic-size-width-control-default);
|
|
3
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
4
|
+
font-size: var(--sapphire-semantic-size-font-control-default);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.sapphire-field--
|
|
8
|
-
.sapphire-labeled-value--
|
|
9
|
-
line-height: var(--sapphire-
|
|
10
|
-
font-size: var(--sapphire-
|
|
7
|
+
.sapphire-field--md .sapphire-labeled-value,
|
|
8
|
+
.sapphire-labeled-value--md {
|
|
9
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
10
|
+
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
readonly "sapphire-labeled-value": string;
|
|
3
|
-
readonly "sapphire-field--
|
|
4
|
-
readonly "sapphire-labeled-value--
|
|
3
|
+
readonly "sapphire-field--md": string;
|
|
4
|
+
readonly "sapphire-labeled-value--md": string;
|
|
5
5
|
};
|
|
6
6
|
export = styles;
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
-webkit-font-smoothing: antialiased;
|
|
14
14
|
-moz-osx-font-smoothing: grayscale;
|
|
15
15
|
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
17
|
* For making line-height take effect in all scenarios
|
|
18
18
|
* Otherwise in some cases the link can be set to display: inline
|
|
19
19
|
* by the browser which would not make line-height apply
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
*/
|
|
22
22
|
display: inline-block;
|
|
23
23
|
|
|
24
|
-
font-family: var(--sapphire-
|
|
25
|
-
font-size: var(--sapphire-
|
|
26
|
-
line-height: var(--sapphire-
|
|
24
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
25
|
+
font-size: var(--sapphire-semantic-size-font-text-lg);
|
|
26
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
outline: 0;
|
|
29
|
-
border-radius: var(--sapphire-
|
|
29
|
+
border-radius: var(--sapphire-semantic-size-radius-xs);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/* Disabled state for all variants */
|
|
33
33
|
.sapphire-link.is-disabled {
|
|
34
|
-
opacity: var(--sapphire-
|
|
34
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
35
35
|
cursor: not-allowed;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
*/
|
|
41
41
|
/* primary */
|
|
42
42
|
.sapphire-link--primary {
|
|
43
|
-
color: var(--sapphire-
|
|
43
|
+
color: var(--sapphire-semantic-color-content-link-primary-default);
|
|
44
44
|
}
|
|
45
45
|
.sapphire-link--primary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
46
46
|
.is-active
|
|
@@ -48,23 +48,23 @@
|
|
|
48
48
|
.sapphire-link--primary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
49
49
|
.is-active
|
|
50
50
|
).is-hover {
|
|
51
|
-
color: var(--sapphire-
|
|
51
|
+
color: var(--sapphire-semantic-color-content-link-primary-hover);
|
|
52
52
|
}
|
|
53
53
|
.sapphire-link--primary.is-focus,
|
|
54
54
|
.sapphire-link--primary:not(.js-focus):focus-visible {
|
|
55
|
-
color: var(--sapphire-
|
|
56
|
-
outline: var(--sapphire-
|
|
57
|
-
var(--sapphire-
|
|
55
|
+
color: var(--sapphire-semantic-color-content-link-primary-default);
|
|
56
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
57
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
58
58
|
}
|
|
59
59
|
.sapphire-link--primary:not(:disabled):not(.is-disabled).is-active,
|
|
60
60
|
.sapphire-link--primary:not(:disabled):not(.is-disabled):active,
|
|
61
61
|
.sapphire-link--primary:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
62
|
-
color: var(--sapphire-
|
|
62
|
+
color: var(--sapphire-semantic-color-content-link-primary-active);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/* secondary */
|
|
66
66
|
.sapphire-link--secondary {
|
|
67
|
-
color: var(--sapphire-
|
|
67
|
+
color: var(--sapphire-semantic-color-content-link-secondary-default);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.sapphire-link--secondary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
.sapphire-link--secondary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
74
74
|
.is-active
|
|
75
75
|
).is-hover {
|
|
76
|
-
color: var(--sapphire-
|
|
76
|
+
color: var(--sapphire-semantic-color-content-link-secondary-hover);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.sapphire-link--secondary.is-focus,
|
|
80
80
|
.sapphire-link--secondary:not(.js-focus):focus-visible {
|
|
81
|
-
color: var(--sapphire-
|
|
82
|
-
outline: var(--sapphire-
|
|
83
|
-
var(--sapphire-
|
|
81
|
+
color: var(--sapphire-semantic-color-content-link-secondary-default);
|
|
82
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
83
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.sapphire-link--secondary:not(:disabled):not(.is-disabled).is-active,
|
|
@@ -88,16 +88,16 @@
|
|
|
88
88
|
.sapphire-link--secondary:not(:disabled):not(
|
|
89
89
|
.is-disabled
|
|
90
90
|
):focus-visible:active {
|
|
91
|
-
color: var(--sapphire-
|
|
91
|
+
color: var(--sapphire-semantic-color-content-link-secondary-active);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Size variations
|
|
96
96
|
*/
|
|
97
|
-
.sapphire-link--
|
|
98
|
-
font-size: var(--sapphire-
|
|
97
|
+
.sapphire-link--md {
|
|
98
|
+
font-size: var(--sapphire-semantic-size-font-text-md);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
.sapphire-link--
|
|
102
|
-
font-size: var(--sapphire-
|
|
101
|
+
.sapphire-link--sm {
|
|
102
|
+
font-size: var(--sapphire-semantic-size-font-text-sm);
|
|
103
103
|
}
|
|
@@ -8,8 +8,8 @@ declare const styles: {
|
|
|
8
8
|
readonly "is-focus": string;
|
|
9
9
|
readonly "js-focus": string;
|
|
10
10
|
readonly "sapphire-link--secondary": string;
|
|
11
|
-
readonly "sapphire-link--
|
|
12
|
-
readonly "sapphire-link--
|
|
11
|
+
readonly "sapphire-link--md": string;
|
|
12
|
+
readonly "sapphire-link--sm": string;
|
|
13
13
|
};
|
|
14
14
|
export = styles;
|
|
15
15
|
|
|
@@ -25,9 +25,11 @@
|
|
|
25
25
|
position: relative;
|
|
26
26
|
display: flex;
|
|
27
27
|
justify-content: space-between;
|
|
28
|
-
padding: var(--sapphire-
|
|
29
|
-
var(--sapphire-
|
|
30
|
-
background-color: var(
|
|
28
|
+
padding: var(--sapphire-semantic-size-spacing-30)
|
|
29
|
+
var(--sapphire-semantic-size-spacing-data-collection-item-horizontal-lg);
|
|
30
|
+
background-color: var(
|
|
31
|
+
--sapphire-semantic-color-background-action-tertiary-ghost-default
|
|
32
|
+
);
|
|
31
33
|
outline: none;
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -43,12 +45,12 @@
|
|
|
43
45
|
display: flex;
|
|
44
46
|
justify-content: space-between;
|
|
45
47
|
width: 100%;
|
|
46
|
-
/*
|
|
47
|
-
* Same as outermost element (li) as this should control padding instead
|
|
48
|
+
/*
|
|
49
|
+
* Same as outermost element (li) as this should control padding instead
|
|
48
50
|
* if element is a (href prop has value) or button (action prop has value).
|
|
49
51
|
*/
|
|
50
|
-
padding: var(--sapphire-
|
|
51
|
-
var(--sapphire-
|
|
52
|
+
padding: var(--sapphire-semantic-size-spacing-30)
|
|
53
|
+
var(--sapphire-semantic-size-spacing-data-collection-item-horizontal-lg);
|
|
52
54
|
|
|
53
55
|
/* Counterstyling anything passed as custom content wrapper */
|
|
54
56
|
text-decoration: none;
|
|
@@ -63,9 +65,16 @@
|
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
.sapphire-list--negative-margin-self {
|
|
66
|
-
margin-left: calc(
|
|
68
|
+
margin-left: calc(
|
|
69
|
+
var(--sapphire-semantic-size-spacing-data-collection-item-horizontal-lg) *
|
|
70
|
+
-1
|
|
71
|
+
);
|
|
67
72
|
width: calc(
|
|
68
|
-
100% +
|
|
73
|
+
100% +
|
|
74
|
+
(
|
|
75
|
+
var(--sapphire-semantic-size-spacing-data-collection-item-horizontal-lg) *
|
|
76
|
+
2
|
|
77
|
+
)
|
|
69
78
|
);
|
|
70
79
|
}
|
|
71
80
|
|
|
@@ -74,10 +83,10 @@
|
|
|
74
83
|
.sapphire-list__item-content-wrapper:disabled,
|
|
75
84
|
.sapphire-list__item-content-wrapper[aria-disabled='true'] {
|
|
76
85
|
cursor: not-allowed;
|
|
77
|
-
opacity: var(--sapphire-
|
|
86
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
78
87
|
}
|
|
79
88
|
|
|
80
|
-
/*
|
|
89
|
+
/*
|
|
81
90
|
Only render a divider if
|
|
82
91
|
- item isn't last child of without-last-divider list
|
|
83
92
|
- next item is focused (as next item's top box-shadow will act as divider) either by
|
|
@@ -85,12 +94,12 @@
|
|
|
85
94
|
- sibling of a list item without a child item-content-wrapper not having a focused child item-content-wrapper
|
|
86
95
|
- item-content-wrapper is not focused itself
|
|
87
96
|
|
|
88
|
-
Note that using box-shadow both for divider and focus styling complicates the selectors
|
|
97
|
+
Note that using box-shadow both for divider and focus styling complicates the selectors
|
|
89
98
|
as we for instance have to exclude the focus states when adding the divider.
|
|
90
99
|
*/
|
|
91
100
|
.sapphire-list__item-content-wrapper:not(.is-focus, :not(.js-focus):focus),
|
|
92
101
|
.sapphire-list__item:not(:has(.sapphire-list__item-content-wrapper)) {
|
|
93
|
-
box-shadow: inset 0px -1px 0px 0px var(--sapphire-
|
|
102
|
+
box-shadow: inset 0px -1px 0px 0px var(--sapphire-semantic-color-border-separator-default);
|
|
94
103
|
}
|
|
95
104
|
/* For not virtualized list */
|
|
96
105
|
.sapphire-list--without-last-divider:not(:has([role="presentation"] > [role="presentation"]))
|
|
@@ -129,7 +138,9 @@
|
|
|
129
138
|
.sapphire-list__item-content-wrapper:not(.js-hover):not(
|
|
130
139
|
[aria-disabled='true']
|
|
131
140
|
):not(:disabled):hover {
|
|
132
|
-
background-color: var(
|
|
141
|
+
background-color: var(
|
|
142
|
+
--sapphire-semantic-color-background-action-secondary-default
|
|
143
|
+
);
|
|
133
144
|
cursor: pointer;
|
|
134
145
|
}
|
|
135
146
|
|
|
@@ -144,17 +155,16 @@
|
|
|
144
155
|
.sapphire-list__item-content-wrapper.is-focus,
|
|
145
156
|
.sapphire-list__item-content-wrapper:not(.js-focus):focus {
|
|
146
157
|
outline: none;
|
|
147
|
-
box-shadow: inset 0px 0px 0px
|
|
148
|
-
var(--sapphire-
|
|
149
|
-
var(--sapphire-list-color-border-item-focus);
|
|
158
|
+
box-shadow: inset 0px 0px 0px var(--sapphire-semantic-size-focus-ring)
|
|
159
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
150
160
|
border: 0;
|
|
151
|
-
border-radius: var(--sapphire-
|
|
161
|
+
border-radius: var(--sapphire-semantic-size-radius-sm);
|
|
152
162
|
}
|
|
153
163
|
|
|
154
164
|
.sapphire-list__item-content-left {
|
|
155
165
|
display: flex;
|
|
156
166
|
align-items: center;
|
|
157
|
-
margin-right: var(--sapphire-
|
|
167
|
+
margin-right: var(--sapphire-semantic-size-spacing-30);
|
|
158
168
|
/* This was added to accommodate nowrap + hidden text overflow situations */
|
|
159
169
|
min-width: 0;
|
|
160
170
|
}
|
|
@@ -163,14 +173,14 @@
|
|
|
163
173
|
display: flex;
|
|
164
174
|
align-items: center;
|
|
165
175
|
text-align: right;
|
|
166
|
-
margin-left: var(--sapphire-
|
|
167
|
-
color: var(--sapphire-
|
|
176
|
+
margin-left: var(--sapphire-semantic-size-spacing-30);
|
|
177
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
168
178
|
}
|
|
169
179
|
|
|
170
180
|
.sapphire-list__item-text {
|
|
171
181
|
display: flex;
|
|
172
182
|
flex-direction: column;
|
|
173
|
-
font-family: var(--sapphire-
|
|
183
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
174
184
|
/* This was added to accommodate nowrap + hidden text overflow situation */
|
|
175
185
|
min-width: 0;
|
|
176
186
|
overflow-wrap: break-word;
|
|
@@ -182,23 +192,23 @@
|
|
|
182
192
|
|
|
183
193
|
/* If sibling is present before the text, we apply margin to the left on the text */
|
|
184
194
|
* + .sapphire-list__item-text {
|
|
185
|
-
margin-left: var(--sapphire-
|
|
195
|
+
margin-left: var(--sapphire-semantic-size-spacing-30);
|
|
186
196
|
}
|
|
187
197
|
|
|
188
198
|
/* If sibling is present after the text, we apply margin to the left on that sibling */
|
|
189
199
|
.sapphire-list__item-text + * {
|
|
190
|
-
margin-left: var(--sapphire-
|
|
200
|
+
margin-left: var(--sapphire-semantic-size-spacing-30);
|
|
191
201
|
}
|
|
192
202
|
|
|
193
203
|
.sapphire-list__item-text-primary {
|
|
194
|
-
color: var(--sapphire-
|
|
195
|
-
line-height: var(--sapphire-
|
|
196
|
-
font-size: var(--sapphire-
|
|
197
|
-
font-weight: var(--sapphire-
|
|
204
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
205
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
206
|
+
font-size: var(--sapphire-semantic-size-font-text-lg);
|
|
207
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
198
208
|
}
|
|
199
209
|
|
|
200
210
|
.sapphire-list__item-text-secondary {
|
|
201
|
-
color: var(--sapphire-
|
|
202
|
-
line-height: var(--sapphire-
|
|
203
|
-
font-size: var(--sapphire-
|
|
211
|
+
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
212
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
213
|
+
font-size: var(--sapphire-semantic-size-font-text-md);
|
|
204
214
|
}
|