@db-ux/core-components 4.9.0-stencil-bundle-ad37ca4 → 4.9.1
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/CHANGELOG.md +12 -0
- package/build/components/header/header.css +3 -3
- package/build/components/header/header.scss +16 -16
- package/build/components/notification/notification-grid-default.scss +2 -2
- package/build/components/notification/notification.css +8 -8
- package/build/components/switch/switch.css +2 -1
- package/build/components/switch/switch.scss +3 -3
- package/build/styles/absolute.css +3 -3
- package/build/styles/bundle.css +3 -3
- package/build/styles/index.css +3 -3
- package/build/styles/relative.css +3 -3
- package/build/styles/rollup.css +3 -3
- package/build/styles/webpack.css +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @db-ux/core-components
|
|
2
2
|
|
|
3
|
+
## 4.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(switch): use `2lh` unit and add `min-inline-size` to prevent track from shrinking - [see commit 78c9fde](https://github.com/db-ux-design-system/core-web/commit/78c9fde67d9677f61eaa41761a088b9c1a9773a1)
|
|
8
|
+
|
|
9
|
+
- fix(notification): remove empty grid gap when icon is hidden - [see commit 96f94c6](https://github.com/db-ux-design-system/core-web/commit/96f94c651391f014e2d073402c2700b524ccbf5e)
|
|
10
|
+
|
|
11
|
+
## 4.9.0
|
|
12
|
+
|
|
13
|
+
_version bump_
|
|
14
|
+
|
|
3
15
|
## 4.8.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -343,13 +343,13 @@
|
|
|
343
343
|
*/
|
|
344
344
|
visibility: hidden;
|
|
345
345
|
}
|
|
346
|
-
.db-header:
|
|
346
|
+
.db-header:has(.db-header-navigation:empty) .db-header-navigation-container::before, .db-header:has(.db-brand:empty) .db-header-navigation-container::before {
|
|
347
347
|
display: none;
|
|
348
348
|
}
|
|
349
|
-
.db-header:
|
|
349
|
+
.db-header:has(.db-header-navigation:empty):has(.db-header-meta-navigation:empty):has(.db-header-secondary-action:empty) .db-header-burger-menu-container:not([hidden]) {
|
|
350
350
|
display: none;
|
|
351
351
|
}
|
|
352
|
-
.db-header:
|
|
352
|
+
.db-header:has(.db-header-navigation:empty):has(.db-header-secondary-action:empty) .db-header-action-container::before {
|
|
353
353
|
display: none;
|
|
354
354
|
}
|
|
355
355
|
|
|
@@ -48,28 +48,28 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
// All use-cases where we hide the divider
|
|
51
|
-
&:
|
|
51
|
+
&:has(.db-header-navigation:empty),
|
|
52
52
|
&:has(.db-brand:empty) {
|
|
53
53
|
.db-header-navigation-container::before {
|
|
54
54
|
display: none;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
58
|
+
// Hide the burger ONLY when the drawer would be empty.
|
|
59
|
+
// This requires: no main navigation AND no meta navigation AND no secondary action.
|
|
60
|
+
&:has(.db-header-navigation:empty):has(
|
|
61
|
+
.db-header-meta-navigation:empty
|
|
62
|
+
):has(.db-header-secondary-action:empty) {
|
|
63
|
+
.db-header-burger-menu-container {
|
|
64
|
+
@include helpers.display(none);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Hide the action-area divider only when both navigation and secondary action are missing.
|
|
69
|
+
// With no navigation but a secondary action, we keep the divider.
|
|
70
|
+
&:has(.db-header-navigation:empty):has(.db-header-secondary-action:empty) {
|
|
71
|
+
.db-header-action-container::before {
|
|
72
|
+
display: none;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// 3. icon or img
|
|
53
|
-
&[data-icon],
|
|
54
|
-
&[data-semantic]:not([data-semantic="adaptive"]),
|
|
53
|
+
&[data-icon]:not([data-show-icon="false"]),
|
|
54
|
+
&[data-semantic]:not([data-semantic="adaptive"], [data-show-icon="false"]),
|
|
55
55
|
&:has(img) {
|
|
56
56
|
grid-template-areas: "icon content";
|
|
57
57
|
grid-template-columns: min-content 1fr;
|
|
@@ -950,35 +950,35 @@
|
|
|
950
950
|
grid-template-columns: 1fr min-content min-content;
|
|
951
951
|
grid-template-areas: "head timestamp close" "content content .";
|
|
952
952
|
}
|
|
953
|
-
[data-icon].db-notification, [data-semantic].db-notification:not([data-semantic=adaptive]), .db-notification:has(img) {
|
|
953
|
+
[data-icon].db-notification:not([data-show-icon=false]), [data-semantic].db-notification:not([data-semantic=adaptive], [data-show-icon=false]), .db-notification:has(img) {
|
|
954
954
|
grid-template-areas: "icon content";
|
|
955
955
|
grid-template-columns: min-content 1fr;
|
|
956
956
|
}
|
|
957
|
-
[data-icon][data-link-variant=inline]
|
|
957
|
+
[data-icon].db-notification:not([data-show-icon=false])[data-link-variant=inline], [data-semantic].db-notification:not([data-semantic=adaptive], [data-show-icon=false])[data-link-variant=inline], .db-notification:has(img)[data-link-variant=inline] {
|
|
958
958
|
grid-template-columns: min-content 1fr min-content;
|
|
959
959
|
grid-template-areas: "icon content timestamp";
|
|
960
960
|
}
|
|
961
|
-
[data-icon].db-notification:has(.db-button), [data-semantic].db-notification:not([data-semantic=adaptive]):has(.db-button), .db-notification:has(img):has(.db-button) {
|
|
961
|
+
[data-icon].db-notification:not([data-show-icon=false]):has(.db-button), [data-semantic].db-notification:not([data-semantic=adaptive], [data-show-icon=false]):has(.db-button), .db-notification:has(img):has(.db-button) {
|
|
962
962
|
grid-template-columns: min-content 1fr min-content;
|
|
963
963
|
grid-template-areas: "icon content close";
|
|
964
964
|
}
|
|
965
|
-
[data-icon].db-notification:has(.db-button)[data-link-variant=inline], [data-semantic].db-notification:not([data-semantic=adaptive]):has(.db-button)[data-link-variant=inline], .db-notification:has(img):has(.db-button)[data-link-variant=inline] {
|
|
965
|
+
[data-icon].db-notification:not([data-show-icon=false]):has(.db-button)[data-link-variant=inline], [data-semantic].db-notification:not([data-semantic=adaptive], [data-show-icon=false]):has(.db-button)[data-link-variant=inline], .db-notification:has(img):has(.db-button)[data-link-variant=inline] {
|
|
966
966
|
grid-template-columns: min-content 1fr min-content min-content;
|
|
967
967
|
grid-template-areas: "icon content timestamp close";
|
|
968
968
|
}
|
|
969
|
-
[data-icon].db-notification:has(header), [data-semantic].db-notification:not([data-semantic=adaptive]):has(header), .db-notification:has(img):has(header) {
|
|
969
|
+
[data-icon].db-notification:not([data-show-icon=false]):has(header), [data-semantic].db-notification:not([data-semantic=adaptive], [data-show-icon=false]):has(header), .db-notification:has(img):has(header) {
|
|
970
970
|
grid-template-columns: min-content 1fr;
|
|
971
971
|
grid-template-areas: "icon head" "icon content";
|
|
972
972
|
}
|
|
973
|
-
[data-icon].db-notification:has(header)[data-link-variant=inline], [data-semantic].db-notification:not([data-semantic=adaptive]):has(header)[data-link-variant=inline], .db-notification:has(img):has(header)[data-link-variant=inline] {
|
|
973
|
+
[data-icon].db-notification:not([data-show-icon=false]):has(header)[data-link-variant=inline], [data-semantic].db-notification:not([data-semantic=adaptive], [data-show-icon=false]):has(header)[data-link-variant=inline], .db-notification:has(img):has(header)[data-link-variant=inline] {
|
|
974
974
|
grid-template-columns: min-content 1fr min-content;
|
|
975
975
|
grid-template-areas: "icon head timestamp" "icon content content";
|
|
976
976
|
}
|
|
977
|
-
[data-icon].db-notification:has(header):has(.db-button), [data-semantic].db-notification:not([data-semantic=adaptive]):has(header):has(.db-button), .db-notification:has(img):has(header):has(.db-button) {
|
|
977
|
+
[data-icon].db-notification:not([data-show-icon=false]):has(header):has(.db-button), [data-semantic].db-notification:not([data-semantic=adaptive], [data-show-icon=false]):has(header):has(.db-button), .db-notification:has(img):has(header):has(.db-button) {
|
|
978
978
|
grid-template-columns: min-content 1fr min-content;
|
|
979
979
|
grid-template-areas: "icon head close" "icon content content";
|
|
980
980
|
}
|
|
981
|
-
[data-icon].db-notification:has(header):has(.db-button)[data-link-variant=inline], [data-semantic].db-notification:not([data-semantic=adaptive]):has(header):has(.db-button)[data-link-variant=inline], .db-notification:has(img):has(header):has(.db-button)[data-link-variant=inline] {
|
|
981
|
+
[data-icon].db-notification:not([data-show-icon=false]):has(header):has(.db-button)[data-link-variant=inline], [data-semantic].db-notification:not([data-semantic=adaptive], [data-show-icon=false]):has(header):has(.db-button)[data-link-variant=inline], .db-notification:has(img):has(header):has(.db-button)[data-link-variant=inline] {
|
|
982
982
|
grid-template-columns: min-content 1fr min-content min-content;
|
|
983
983
|
grid-template-areas: "icon head timestamp close" "icon content content .";
|
|
984
984
|
}
|
|
@@ -390,7 +390,8 @@
|
|
|
390
390
|
--thumb-offset-x: 0.125rem;
|
|
391
391
|
appearance: none;
|
|
392
392
|
margin-inline-end: 0;
|
|
393
|
-
inline-size: calc(
|
|
393
|
+
inline-size: calc(2lh + 0.125rem);
|
|
394
|
+
min-inline-size: calc(2lh + 0.125rem);
|
|
394
395
|
block-size: var(--db-icon-font-size);
|
|
395
396
|
box-sizing: content-box;
|
|
396
397
|
}
|
|
@@ -15,6 +15,7 @@ $switch-active-thumb-size: calc(#{form-components.$font-size-height});
|
|
|
15
15
|
$checked-active-transition-size: calc(
|
|
16
16
|
#{form-components.$font-size-height} - #{$switch-fixed-padding} * 2
|
|
17
17
|
);
|
|
18
|
+
$switch-inline-size: calc(2lh + #{$switch-fixed-padding});
|
|
18
19
|
|
|
19
20
|
%active-transition {
|
|
20
21
|
&::before {
|
|
@@ -64,9 +65,8 @@ $checked-active-transition-size: calc(
|
|
|
64
65
|
|
|
65
66
|
appearance: none;
|
|
66
67
|
margin-inline-end: 0;
|
|
67
|
-
inline-size:
|
|
68
|
-
|
|
69
|
-
);
|
|
68
|
+
inline-size: $switch-inline-size;
|
|
69
|
+
min-inline-size: $switch-inline-size;
|
|
70
70
|
block-size: form-components.$font-size-height;
|
|
71
71
|
box-sizing: content-box;
|
|
72
72
|
|