File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,12 @@ class NavigationLayout extends UI5Element {
72
72
@property ( { type : Boolean } )
73
73
sideCollapsed : boolean = this . _defaultSideCollapsed ;
74
74
75
+ /**
76
+ * @private
77
+ */
78
+ @property ( { type : Boolean } )
79
+ hasSideNavigation = false ;
80
+
75
81
/**
76
82
* @private
77
83
*/
@@ -122,6 +128,7 @@ class NavigationLayout extends UI5Element {
122
128
}
123
129
124
130
const sideNavigation = this . sideContent [ 0 ] ;
131
+ this . hasSideNavigation = ! ! sideNavigation ;
125
132
126
133
if ( sideNavigation ) {
127
134
sideNavigation . collapsed = this . isSideCollapsed ( ) ;
Original file line number Diff line number Diff line change @@ -75,9 +75,11 @@ type PopupSideNavigationItem = SideNavigationItem & { associatedItem: SideNaviga
75
75
* The items can consist of text only or an icon with text. The use or non-use of icons must be consistent for all items on one level.
76
76
* You must not combine entries with and without icons on the same level. We strongly recommend that you do not use icons on the second level.
77
77
*
78
- * The `ui5-side-navigation` component is intended for use within an `ui5-navigation-layout` component.
79
- * While it can function independently, it is recommended to use it with
80
- * the `ui5-navigation-layout` for optimal user experience.
78
+ * The `ui5-side-navigation` component is designed to be used within a `ui5-navigation-layout1 component to ensure an optimal user experience.
79
+ *
80
+ * Using it standalone may not match the intended design and functionality.
81
+ * For example, the side navigation may not exhibit the correct behavior on phones and tablets.
82
+ * Padding of the `ui5-shellbar` will not match the padding of the side navigation.
81
83
*
82
84
* ### Keyboard Handling
83
85
*
Original file line number Diff line number Diff line change 59
59
transform : translateX (100% );
60
60
}
61
61
62
- ::slotted ([ui5-shellbar ][slot = "header" ]) {
63
- padding-inline : .5 rem ;
62
+ : host ([ has-side-navigation ]) : :slotted ([ui5-shellbar ][slot = "header" ]) {
63
+ padding-inline : 0.875 rem 1 rem ;
64
64
}
You can’t perform that action at this time.
0 commit comments