Skip to content

Commit

Permalink
refactor: remove mobile stacking from breadcrumbs (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniebmn authored Jan 13, 2025
1 parent 1cd508a commit cf70cf6
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@layer reset, default, hover, focus, mobile;
@layer reset, default, hover, focus;

@layer reset {
:host(.gcds-breadcrumbs-item) {
Expand All @@ -17,9 +17,7 @@

@layer default {
:host(.gcds-breadcrumbs-item) {
@media screen and (width >= 30rem) {
margin: var(--gcds-breadcrumbs-item-margin) !important;
}
margin: var(--gcds-breadcrumbs-item-margin) !important;

&:before {
display: inline-block;
Expand All @@ -29,13 +27,3 @@
}
}
}

/* Note: mobile specific style decision */
@layer mobile {
@media screen and (width < 30rem) {
:host(.gcds-breadcrumbs-item) {
display: block;
margin: var(--gcds-breadcrumbs-mobile-item-margin) !important;
}
}
}

0 comments on commit cf70cf6

Please sign in to comment.