Skip to content

Commit

Permalink
fix(footer): fix grid alignment when disabling locale (#11028)
Browse files Browse the repository at this point in the history
Co-authored-by: kennylam <[email protected]>
  • Loading branch information
annawen1 and kennylam authored Oct 28, 2023
1 parent d74cdc5 commit 7943e5b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions packages/styles/scss/components/footer/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
/// @group footer

@mixin footer {
:host(#{$c4d-prefix}-footer),
.#{$prefix}--footer {
:host(#{$c4d-prefix}-footer) {
width: 100%;
padding-block: $spacing-09;

Expand All @@ -49,8 +48,14 @@
}
}

:host(#{$c4d-prefix}-footer[size='short']),
.#{$prefix}--footer--short {
:host(#{$c4d-prefix}-footer[disable-locale-button])
.#{$prefix}--footer__main-container {
@include breakpoint(lg) {
flex-flow: nowrap;
}
}

:host(#{$c4d-prefix}-footer[size='short']) {
padding-block: $spacing-07;

.#{$prefix}--footer__logo-container {
Expand All @@ -68,8 +73,7 @@
}
}

:host(#{$c4d-prefix}-footer[size='micro']),
.#{$prefix}--footer--micro {
:host(#{$c4d-prefix}-footer[size='micro']) {
padding-top: 0;
padding-bottom: 0;

Expand All @@ -95,8 +99,7 @@

:host(#{$c4d-prefix}-footer-nav-item),
:host(#{$c4d-prefix}-legal-nav-item),
:host(#{$c4d-prefix}-legal-nav-cookie-preferences-placeholder),
.#{$prefix}--footer {
:host(#{$c4d-prefix}-legal-nav-cookie-preferences-placeholder) {
@include theme($g90, feature-flag-enabled('enable-css-custom-properties'));

.#{$prefix}--footer__link.#{$prefix}--link {
Expand All @@ -122,8 +125,7 @@
}
}

:host(#{$c4d-prefix}-legal-nav),
.#{$prefix}--footer {
:host(#{$c4d-prefix}-legal-nav) {
@include theme($g90, feature-flag-enabled('enable-css-custom-properties'));

.#{$prefix}--legal-nav__list {
Expand Down Expand Up @@ -185,6 +187,7 @@
.#{$prefix}--footer__locale-button--disabled {
@include make-col(2, 16);

flex: auto;
margin-left: 0;
margin-right: 0;
}
Expand Down

0 comments on commit 7943e5b

Please sign in to comment.