@db-ux/core-components 3.0.8-switch-439d623 → 3.0.8

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.
@@ -458,7 +458,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
458
458
  .db-header:has(.db-header-navigation:empty) .db-header-navigation-container::before, .db-header:has(.db-brand:empty) .db-header-navigation-container::before {
459
459
  display: none;
460
460
  }
461
- .db-header:has(.db-header-navigation:empty) .db-header-burger-menu-container {
461
+ .db-header:has(.db-header-navigation:empty):has(.db-header-meta-navigation:empty):has(.db-header-secondary-action:empty) .db-header-burger-menu-container {
462
462
  display: none;
463
463
  }
464
464
  .db-header:has(.db-header-navigation:empty):has(.db-header-secondary-action:empty) .db-header-action-container::before {
@@ -53,16 +53,21 @@
53
53
  }
54
54
  }
55
55
 
56
- // Hide the burger menu if there is no navigation
57
- &:has(.db-header-navigation:empty) {
56
+ // Hide the burger ONLY when the drawer would be empty.
57
+ // This requires: no main navigation AND no meta navigation AND no secondary action.
58
+ &:has(.db-header-navigation:empty):has(
59
+ .db-header-meta-navigation:empty
60
+ ):has(.db-header-secondary-action:empty) {
58
61
  .db-header-burger-menu-container {
59
62
  display: none;
60
63
  }
64
+ }
61
65
 
62
- &:has(.db-header-secondary-action:empty) {
63
- .db-header-action-container::before {
64
- display: none;
65
- }
66
+ // Hide the action-area divider only when both navigation and secondary action are missing.
67
+ // With no navigation but a secondary action, we keep the divider.
68
+ &:has(.db-header-navigation:empty):has(.db-header-secondary-action:empty) {
69
+ .db-header-action-container::before {
70
+ display: none;
66
71
  }
67
72
  }
68
73
  }