Skip to content

Commit 36ecdef

Browse files
committed
fix: issue with drawer and flat-icon-navigation
1 parent f02f005 commit 36ecdef

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

packages/components/src/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
@use "@db-ux/core-foundations/build/styles/variables";
33
@use "@db-ux/core-foundations/build/styles/fonts";
44
@use "../../styles/internal/form-components";
5+
@use "../../styles/internal/navigation-item";
6+
@use "../../styles/internal/indicator";
57

68
.db-control-panel-flat-icon-navigation {
79
display: none;
@@ -24,8 +26,16 @@
2426
align-items: center;
2527

2628
a {
29+
@extend %indicator;
30+
2731
min-block-size: variables.$db-sizing-md;
2832
min-inline-size: variables.$db-sizing-md;
33+
34+
@include indicator.set-indicator-horizontal();
35+
36+
@include navigation-item.active-navigation-item {
37+
@include indicator.show-indicator-horizontal();
38+
}
2939
}
3040
}
3141
}
@@ -77,6 +87,7 @@
7787
padding-block: var(--nav-icon-size) 0;
7888
padding-inline-end: variables.$db-spacing-fixed-3xs;
7989
inline-size: fit-content;
90+
justify-content: center;
8091
}
8192
}
8293
}

packages/components/src/components/drawer/drawer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
--db-drawer-min-height,
3535
calc(100% - #{variables.$db-spacing-fixed-xl})
3636
);
37-
max-inline-size: none;
37+
max-inline-size: 100vw;
3838
}
3939
}
4040

0 commit comments

Comments
 (0)