@danske/sapphire-css 45.0.0 → 46.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/components/bulk-actions-bar/bulk-actions-bar.module.css +13 -0
- package/components/bulk-actions-bar/bulk-actions-bar.module.css.d.ts +5 -0
- package/components/list/list.module.css +26 -0
- package/components/list/list.module.css.d.ts +1 -0
- package/components/modalLayout/modalLayout.module.css +1 -0
- package/components/table/table.module.css +1 -17
- package/components/table/table.module.css.d.ts +0 -1
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.sapphire-bulk-actions-bar {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
padding: var(--sapphire-semantic-size-spacing-sm)
|
|
6
|
+
var(--sapphire-semantic-size-spacing-md);
|
|
7
|
+
/* the bg color here is a hack until the design of this changes */
|
|
8
|
+
background: var(--sapphire-semantic-color-background-neutral-subtle);
|
|
9
|
+
position: sticky;
|
|
10
|
+
top: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
z-index: 3;
|
|
13
|
+
}
|
|
@@ -87,6 +87,12 @@ instead of being applied on the list item itself */
|
|
|
87
87
|
align-items: inherit;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
.sapphire-list__item > .sapphire-list__item--selected {
|
|
91
|
+
background: var(
|
|
92
|
+
--sapphire-semantic-color-background-action-select-secondary-default
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
90
96
|
.sapphire-list--negative-margin-self {
|
|
91
97
|
margin-left: calc(var(--sapphire-semantic-size-spacing-md) * -1);
|
|
92
98
|
width: calc(100% + (var(--sapphire-semantic-size-spacing-md) * 2));
|
|
@@ -163,6 +169,15 @@ instead of being applied on the list item itself */
|
|
|
163
169
|
background: var(--sapphire-semantic-color-background-action-tertiary-hover);
|
|
164
170
|
}
|
|
165
171
|
|
|
172
|
+
.sapphire-list__item--selected.is-hover:not(.is-active):not(:has(.is-hover)),
|
|
173
|
+
.sapphire-list__item--selected:not(.js-hover):not([aria-disabled='true']):not(
|
|
174
|
+
:disabled
|
|
175
|
+
):not(:active):not(:has(:hover)):hover {
|
|
176
|
+
background: var(
|
|
177
|
+
--sapphire-semantic-color-background-action-select-secondary-hover
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
166
181
|
/*
|
|
167
182
|
* Focus
|
|
168
183
|
*/
|
|
@@ -193,6 +208,17 @@ instead of being applied on the list item itself */
|
|
|
193
208
|
);
|
|
194
209
|
}
|
|
195
210
|
|
|
211
|
+
.sapphire-list__item--selected:not(.is-disabled).is-active:not(
|
|
212
|
+
:has(.is-active)
|
|
213
|
+
),
|
|
214
|
+
.sapphire-list__item--selected:not([aria-disabled='true']):not(:disabled):not(
|
|
215
|
+
:has(:active)
|
|
216
|
+
):active {
|
|
217
|
+
background-color: var(
|
|
218
|
+
--sapphire-semantic-color-background-action-select-secondary-active
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
|
|
196
222
|
.sapphire-list__item[aria-disabled='true']
|
|
197
223
|
.sapphire-list__item--interactive:active,
|
|
198
224
|
.sapphire-list__item--interactive:focus-visible {
|
|
@@ -2,6 +2,7 @@ declare const styles: {
|
|
|
2
2
|
readonly "sapphire-list": string;
|
|
3
3
|
readonly "sapphire-list__item": string;
|
|
4
4
|
readonly "sapphire-list__item--interactive": string;
|
|
5
|
+
readonly "sapphire-list__item--selected": string;
|
|
5
6
|
readonly "sapphire-list--negative-margin-self": string;
|
|
6
7
|
readonly "is-focus": string;
|
|
7
8
|
readonly "js-focus": string;
|
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.sapphire-modal-layout__section-title {
|
|
117
|
+
z-index: 1; /* Only <legend> element appears above content by default when sticky, <header> needs this */
|
|
117
118
|
margin-left: calc(
|
|
118
119
|
var(--sapphire-semantic-size-spacing-container-horizontal-md) * -1
|
|
119
120
|
);
|
|
@@ -452,23 +452,6 @@ tbody .sapphire-table__row--highlighted > .sapphire-table__cell:first-child {
|
|
|
452
452
|
);
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
/**
|
|
456
|
-
* Selection actions. Optionally shown when a table uses multiple selection.
|
|
457
|
-
*/
|
|
458
|
-
.sapphire-table__selection-action-bar {
|
|
459
|
-
display: flex;
|
|
460
|
-
align-items: center;
|
|
461
|
-
justify-content: space-between;
|
|
462
|
-
padding: var(--sapphire-semantic-size-spacing-sm)
|
|
463
|
-
var(--sapphire-semantic-size-spacing-lg);
|
|
464
|
-
/* the bg color here is a hack until the design of this changes */
|
|
465
|
-
background: var(--sapphire-semantic-color-background-neutral-subtle);
|
|
466
|
-
position: sticky;
|
|
467
|
-
top: 0;
|
|
468
|
-
left: 0;
|
|
469
|
-
z-index: 3;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
455
|
/**
|
|
473
456
|
* Footer.
|
|
474
457
|
* Normally used as a container for the pagination.
|
|
@@ -476,6 +459,7 @@ tbody .sapphire-table__row--highlighted > .sapphire-table__cell:first-child {
|
|
|
476
459
|
.sapphire-table__footer {
|
|
477
460
|
position: relative;
|
|
478
461
|
z-index: 2; /* Setting to two because body rows are positioned relative */
|
|
462
|
+
margin: var(--sapphire-semantic-size-spacing-sm) 0;
|
|
479
463
|
}
|
|
480
464
|
|
|
481
465
|
.sapphire-table__footer--sticky {
|
|
@@ -40,7 +40,6 @@ declare const styles: {
|
|
|
40
40
|
readonly "sapphire-table--without-last-divider": string;
|
|
41
41
|
readonly "sapphire-table__row--interactive": string;
|
|
42
42
|
readonly "sapphire-table__row--highlighted": string;
|
|
43
|
-
readonly "sapphire-table__selection-action-bar": string;
|
|
44
43
|
readonly "sapphire-table__footer": string;
|
|
45
44
|
readonly "sapphire-table__footer--sticky": string;
|
|
46
45
|
readonly "sapphire-table__footer--virtualized": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "46.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,
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@danske/sapphire-design-tokens": "^42.2.1"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "b745d009a1799e0912fcaeb52973104d566326c0"
|
|
73
73
|
}
|