Skip to content

Commit e4114c2

Browse files
NikGurevartembelik
authored andcommitted
feat(top-bar): lower the height (#DS-4297) (#1123)
1 parent 21a0d3b commit e4114c2

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/components/top-bar/top-bar-tokens.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--kbq-top-bar-position: sticky;
33
--kbq-top-bar-background: var(--kbq-background-bg);
44
--kbq-top-bar-spacer-min-width: 80px;
5-
--kbq-top-bar-padding-vertical: var(--kbq-size-xl);
5+
--kbq-top-bar-padding-vertical: var(--kbq-size-m);
66
--kbq-top-bar-padding-horizontal: var(--kbq-size-xxl);
77
--kbq-top-bar-border-radius: 0;
88
--kbq-top-bar-container-start-gap: 0;

packages/components/top-bar/top-bar.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
&:has(> .kbq-overflow-items) {
4646
gap: unset;
4747
overflow: hidden;
48+
// reduce height added by overflow-items' padding
49+
margin-top: calc(-1 * var(--kbq-size-border-width));
50+
margin-bottom: calc(-1 * var(--kbq-size-border-width));
4851
}
4952

5053
.kbq-overflow-items {

0 commit comments

Comments
 (0)