@db-ux/core-components 4.9.0-1-c55de66 → 4.9.0-stencil-bundle-ad37ca4

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.
@@ -343,13 +343,13 @@
343
343
  */
344
344
  visibility: hidden;
345
345
  }
346
- .db-header:has(.db-header-navigation:empty) .db-header-navigation-container::before, .db-header:has(.db-brand:empty) .db-header-navigation-container::before {
346
+ .db-header:not(:has(.db-navigation)) .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:has(.db-header-navigation:empty):has(.db-header-meta-navigation:empty):has(.db-header-secondary-action:empty) .db-header-burger-menu-container:not([hidden]) {
349
+ .db-header:not(:has(.db-navigation)):has(.db-header-secondary-action:empty) .db-header-action-container::before {
350
350
  display: none;
351
351
  }
352
- .db-header:has(.db-header-navigation:empty):has(.db-header-secondary-action:empty) .db-header-action-container::before {
352
+ .db-header:not(:has(.db-navigation)):has(.db-header-secondary-action:empty):has(.db-header-meta-navigation:empty) .db-header-burger-menu-container:not([hidden]) {
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
- &:has(.db-header-navigation:empty),
51
+ &:not(:has(.db-navigation)),
52
52
  &:has(.db-brand:empty) {
53
53
  .db-header-navigation-container::before {
54
54
  display: none;
55
55
  }
56
56
  }
57
57
 
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;
58
+ &:not(:has(.db-navigation)) {
59
+ &:has(.db-header-secondary-action:empty) {
60
+ // Hide the action-area divider only when both navigation and secondary action are missing.
61
+ // With no navigation but a secondary action, we keep the divider.
62
+ .db-header-action-container::before {
63
+ display: none;
64
+ }
65
+
66
+ // Hide the burger ONLY when the drawer would be empty.
67
+ // This requires: no main navigation AND no meta navigation AND no secondary action.
68
+ &:has(.db-header-meta-navigation:empty) {
69
+ .db-header-burger-menu-container {
70
+ @include helpers.display(none);
71
+ }
72
+ }
73
73
  }
74
74
  }
75
75
  }