Skip to content

Commit

Permalink
fix: mega menu grid (#2237)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ico authored Dec 22, 2023
1 parent 6dcfdd1 commit 1c707b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@
grid-column: 3 / span 3;
}

:host-context([children-too-many]):host(:first-child) {
grid-column: 2 / span 3;
}

@media screen and (--2xl) {
:host-context([children-too-many]):host(:first-child) {
grid-column: 1 / span 3;
}
}

[part~='base'] {
display: flex;
flex-direction: column;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,17 @@
--spacing-x: var(--telekom-spacing-composition-space-08);
}
}

/* this is a workaround to host-context not working in FF and safari */

.scale-telekom-mega-menu[children-too-many]
scale-telekom-mega-menu-column:first-child {
grid-column: 2 / span 3;
}

@media screen and (--2xl) {
.scale-telekom-mega-menu[children-too-many]
scale-telekom-mega-menu-column:first-child {
grid-column: 1 / span 3;
}
}

0 comments on commit 1c707b8

Please sign in to comment.