Skip to content

Commit

Permalink
fix(accordion): light mobile padding (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
yd-allianz authored and GitHub Enterprise committed Oct 18, 2021
1 parent baff785 commit 5607d47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 2 additions & 4 deletions projects/ng-aquila/src/accordion/expansion-panel-header.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@import "../shared-styles/index";

$mobile-header-padding: nx-spacer(s);

:host:focus {
outline: none;
}
Expand All @@ -20,7 +18,7 @@ $mobile-header-padding: nx-spacer(s);
@include var(background, accordion-regular-header-background-color);

@include media-breakpoint-down(small) {
padding: $mobile-header-padding;
padding: nx-spacer(s);
}
}

Expand Down Expand Up @@ -76,7 +74,7 @@ $header-title-small-screen-margin-after: nx-spacer(s);
background: transparent;

@include media-breakpoint-down(small) {
padding: $mobile-header-padding;
padding: nx-spacer(s) 0;
}
}

Expand Down
10 changes: 6 additions & 4 deletions projects/ng-aquila/src/accordion/expansion-panel.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@import "../shared-styles/index";

$mobile-body-padding: nx-spacer(m) nx-spacer(s);

:host {
display: block;
}
Expand All @@ -22,7 +20,7 @@ $mobile-body-padding: nx-spacer(m) nx-spacer(s);
@include type-style(accordion-body);

@include media-breakpoint-down(small) {
padding: $mobile-body-padding;
padding: nx-spacer(m) nx-spacer(s);
}
}

Expand Down Expand Up @@ -64,11 +62,15 @@ $mobile-body-padding: nx-spacer(m) nx-spacer(s);

// Styles of the light version
:host(.nx-expansion-panel--light) {
@include media-breakpoint-down(small) {
margin: 0 nx-spacer(s);
}

.nx-expansion-panel__body {
padding: v(accordion-light-body-padding);

@include media-breakpoint-down(small) {
padding: $mobile-body-padding;
padding: 0 0 nx-spacer(m);
}
}
}
Expand Down

0 comments on commit 5607d47

Please sign in to comment.