7
7
.ui5-sn-item {
8
8
display : flex;
9
9
align-items : center;
10
- width : 100 % ;
10
+ width : auto ;
11
11
box-sizing : border-box;
12
12
text-decoration : none;
13
13
position : relative;
29
29
}
30
30
31
31
: host ([design = "Action" ]) {
32
- color : var (--sapButton_TextColor );
32
+ color : var (--sapButton_TextColor );
33
+ }
34
+
35
+ : host ([design = "Action" ]) .ui5-sn-item : not (.ui5-sn-item-disabled ): active [ui5-icon ],
36
+ : host ([design = "Action" ]) .ui5-sn-item : not (.ui5-sn-item-disabled ): active .ui5-sn-item-text {
37
+ color : var (--_ui5_side_navigation_active_text_color );
38
+ }
39
+
40
+ : host ([design = "Action" ]) .ui5-sn-item {
41
+ border : var (--sapButton_BorderWidth ) solid var (--sapButton_BorderColor );
42
+ box-sizing : content-box;
43
+ }
44
+
45
+ : host ([design = "Action" ]: not ([side-nav-collapsed ])) .ui5-sn-item {
46
+ max-width : -moz-available;
47
+ max-width : -webkit-fill-available;
48
+ max-width : fill-available;
49
+ }
50
+
51
+ : host ([design = "Action" ]) .ui5-sn-item : not (.ui5-sn-item-disabled ): hover {
52
+ border : var (--_ui5_side_navigation_action_item_border_hover );
53
+ background : var (--sapButton_Hover_Background );
54
+ }
55
+
56
+ : host ([design = "Action" ]) .ui5-sn-item : not (.ui5-sn-item-disabled ): active {
57
+ border : var (--_ui5_side_navigation_action_item_border_active );
58
+ background : var (--sapButton_Active_Background );
33
59
}
34
60
35
61
.ui5-sn-item : focus {
@@ -123,7 +149,7 @@ and there is an additional border that appears on hover. */
123
149
border-width : var (--_ui5_side_navigation_selected_border_width );
124
150
}
125
151
126
- .ui5-sn-item : not (.ui5-sn-item-disabled ): not (.ui5-sn-item-selected ): hover ::before {
152
+ : host ( : not ([ design = "Action" ])) .ui5-sn-item : not (.ui5-sn-item-disabled ): not (.ui5-sn-item-selected ): hover ::before {
127
153
border : var (--_ui5_side_navigation_hover_border_style_color );
128
154
border-width : var (--_ui5_side_navigation_hover_border_width );
129
155
}
@@ -157,15 +183,29 @@ and there is an additional border that appears on hover. */
157
183
: host ([design = "Action" ]) .ui5-sn-item-external-link-icon {
158
184
color : var (--sapButton_TextColor );
159
185
}
160
-
161
- : host (: not ([side-nav-collapsed ])) .ui5-sn-item-toggle-icon ,
162
186
.ui5-sn-item-external-link-icon {
187
+ min-width : 3rem ;
188
+ }
189
+
190
+ : host ([side-nav-collapsed ]) .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): hover .ui5-sn-item-toggle-icon ,
191
+ : host ([side-nav-collapsed ]) .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): focus .ui5-sn-item-toggle-icon ,
192
+ : host (: not ([side-nav-collapsed ])) .ui5-sn-item-toggle-icon {
163
193
min-width : var (--_ui5_side_navigation_expand_icon_width );
194
+ padding-inline : 0.25rem 0.375rem ;
195
+ padding-block : 0.25rem ; /* height of the separator (the border left) should be --sapElement_Condensed_Heightwhich is equal to 1.375rem (22px) */
196
+ border-inline-start : 0.0625rem solid var (--sapTextColor );
197
+ margin-inline-start : 1rem ;
198
+ }
199
+
200
+ : host ([unselectable ]: not ([side-nav-collapsed ])) .ui5-sn-item-toggle-icon ,
201
+ : host (: not ([side-nav-collapsed ])) .ui5-sn-item-group .ui5-sn-item-toggle-icon ,
202
+ : host ([unselectable ][side-nav-collapsed ]) .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): hover .ui5-sn-item-toggle-icon ,
203
+ : host ([unselectable ][side-nav-collapsed ]) .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): focus .ui5-sn-item-toggle-icon {
204
+ border-inline-start : none;
164
205
}
165
206
166
207
: host ([in-popover ]) .ui5-sn-item-toggle-icon {
167
208
display : none;
168
- min-width : var (--_ui5_side_navigation_expand_icon_width );
169
209
}
170
210
171
211
: host ([side-nav-collapsed ]) .ui5-sn-item {
@@ -175,11 +215,15 @@ and there is an additional border that appears on hover. */
175
215
: host ([slot = "fixedItems" ]: not (side-nav-collapsed )) .ui5-sn-item .ui5-sn-item-level1 {
176
216
margin-top : var (--_ui5_side_navigation_first_fixed_item_margin_top ); /* space for the focus*/
177
217
}
178
-
179
218
: host ([side-nav-collapsed ]) .ui5-sn-item-icon {
180
219
padding-inline-end : 1rem ;
181
220
}
182
221
222
+ : host ([design = "Action" ][side-nav-collapsed ]) .ui5-sn-item-icon {
223
+ padding-inline-end : calc (1rem - 1px ); /* minus the width of the border */
224
+ padding-inline-start : calc (1rem - 1px ); /* minus the width of the border */
225
+ }
226
+
183
227
: host ([side-nav-collapsed ]) .ui5-sn-item-text {
184
228
display : none;
185
229
}
@@ -203,13 +247,30 @@ and there is an additional border that appears on hover. */
203
247
padding-inline-end : var (--_ui5_side_navigation_item_collapsed_padding_right );
204
248
}
205
249
250
+ : host ([side-nav-collapsed ]) a .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): hover : not (.ui5-sn-item-with-expander ),
251
+ : host ([side-nav-collapsed ]) a .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): focus : not (.ui5-sn-item-with-expander ) {
252
+ padding-inline-end : 0 ;
253
+ }
254
+
255
+ : host ([unselectable ][side-nav-collapsed ]) .ui5-sn-item .ui5-sn-item .ui5-sn-item-with-expander : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): hover ,
256
+ : host ([unselectable ][side-nav-collapsed ]) .ui5-sn-item .ui5-sn-item .ui5-sn-item-with-expander : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): focus {
257
+ padding-inline-end : var (--_ui5_side_navigation_item_collapsed_unselectable_padding );
258
+ }
259
+
260
+ : host ([unselectable ][side-nav-collapsed ]) div .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): not (.ui5-sn-item-with-expander ): hover ,
261
+ : host ([unselectable ][side-nav-collapsed ]) div .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): not (.ui5-sn-item-with-expander ): focus {
262
+ padding-inline-end : var (--_ui5_side_navigation_action_item_collapsed_padding );
263
+ }
264
+
206
265
: host ([side-nav-collapsed ]) .ui5-sn-item .ui5-sn-item-selected : hover ,
207
266
: host ([side-nav-collapsed ]) .ui5-sn-item .ui5-sn-item-selected : focus {
208
267
background : var (--sapList_SelectionBackgroundColor );
209
268
}
210
269
211
- : host ([side-nav-collapsed ]) .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): hover : not (.ui5-sn-item-with-expander ),
212
- : host ([side-nav-collapsed ]) .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): focus : not (.ui5-sn-item-with-expander ) {
270
+ : host ([side-nav-collapsed ]) div .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): hover : not (.ui5-sn-item-with-expander ),
271
+ : host ([side-nav-collapsed ]) div .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): focus : not (.ui5-sn-item-with-expander ),
272
+ : host ([side-nav-collapsed ]) a .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): hover : not (.ui5-sn-item-with-expander ): not ([target = "_blank" ]),
273
+ : host ([side-nav-collapsed ]) a .ui5-sn-item : not (.ui5-sn-item-active ): not (.ui5-sn-item-no-hover-effect ): focus : not (.ui5-sn-item-with-expander ): not ([target = "_blank" ]) {
213
274
padding-inline-end : var (--_ui5_side_navigation_item_collapsed_hover_focus_padding_right );
214
275
}
215
276
@@ -253,5 +314,5 @@ and there is an additional border that appears on hover. */
253
314
}
254
315
255
316
.ui5-sn-item-separator {
256
- min-height : 0.5 rem ;
317
+ min-height : 0.625 rem ;
257
318
}
0 commit comments