@@ -1305,6 +1305,9 @@ $top-buttons-spacing: $app-navigation-padding; // align with app navigation
13051305 }
13061306
13071307 .app - sidebar- header {
1308+ // Variable for custom content to be aware of space taken by close button (from top-right corner)
1309+ -- app- sidebar- close- button- offset: calc (var (-- default- clickable- area) + #{$top- buttons- spacing});
1310+
13081311 > .app - sidebar__close {
13091312 position: absolute;
13101313 z- index: 100 ;
@@ -1340,11 +1343,11 @@ $top-buttons-spacing: $app-navigation-padding; // align with app navigation
13401343 padding- inline- start: 0 ;
13411344 flex: 1 1 auto;
13421345 min- width: 0 ;
1343- padding- inline- end: calc (2 * var (-- default- clickable- area) + $top - buttons - spacing );
1346+ padding- inline- end: calc (var (-- default- clickable- area) + var ( -- app - sidebar - close - button - offset) );
13441347 padding- top: var (-- app- sidebar- padding);
13451348
13461349 & .app - sidebar- header__desc-- without- actions {
1347- padding- inline- end: calc ( var (-- default - clickable - area) + $top - buttons - spacing );
1350+ padding- inline- end: var (-- app - sidebar - close - button - offset );
13481351 }
13491352
13501353 .app - sidebar- header__tertiary- actions {
@@ -1356,7 +1359,7 @@ $top-buttons-spacing: $app-navigation-padding; // align with app navigation
13561359 }
13571360 .app - sidebar- header__menu {
13581361 top: $top- buttons- spacing;
1359- inset- inline- end: calc ( var (-- default - clickable - area) + $top - buttons - spacing ); // left of the close button
1362+ inset- inline- end: var (-- app - sidebar - close - button - offset ); // left of the close button
13601363 position: absolute;
13611364 }
13621365 }
@@ -1369,14 +1372,14 @@ $top-buttons-spacing: $app-navigation-padding; // align with app navigation
13691372 .app - sidebar- header__menu {
13701373 position: absolute;
13711374 top: $top- buttons- spacing;
1372- inset- inline- end: calc ($top - buttons - spacing + var ( -- default - clickable - area) );
1375+ inset- inline- end: var ( -- app - sidebar - close - button - offset );
13731376 }
13741377 // increase the padding to not overlap the menu
13751378 .app - sidebar- header__desc {
1376- padding- inline- end: calc (var (-- default- clickable- area) * 2 + $top - buttons - spacing );
1379+ padding- inline- end: calc (var (-- default- clickable- area) + var ( -- app - sidebar - close - button - offset) );
13771380
13781381 & .app - sidebar- header__desc-- without- actions {
1379- padding- inline- end: calc ( var (-- default - clickable - area) + $top - buttons - spacing );
1382+ padding- inline- end: var (-- app - sidebar - close - button - offset );
13801383 }
13811384 }
13821385 }
0 commit comments