Skip to content

Commit

Permalink
Continue iterating on evolution mixins (WIP).
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 332305249
  • Loading branch information
Brandon Diamond authored and Copybara-Service committed Sep 17, 2020
1 parent e34e411 commit 4e93439
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/mdc-list/_evolution-mixins.scss
Expand Up @@ -551,7 +551,11 @@
) {
$feat-structure: feature-targeting.create-target($query, structure);
@include feature-targeting.targets($feat-structure) {
@include rtl-mixins.reflexive-box(padding, left, 0);
// Extra specificity needed to override default customizations.
&.mdc-evolution-list-item {
// We rely on auto to avoid clobbering the opposite padding.
@include rtl-mixins.reflexive-property(padding, 0, auto);
}

.mdc-evolution-list-item__start {
@include rtl-mixins.reflexive-property(margin, $leading, $trailing);
Expand All @@ -566,7 +570,11 @@
) {
$feat-structure: feature-targeting.create-target($query, structure);
@include feature-targeting.targets($feat-structure) {
@include rtl-mixins.reflexive-box(padding, right, 0);
// Extra specificity needed to override default customizations.
&.mdc-evolution-list-item {
// We rely on auto to avoid clobbering the opposite padding.
@include rtl-mixins.reflexive-property(padding, auto, 0);
}

.mdc-evolution-list-item__end {
@include rtl-mixins.reflexive-property(margin, $leading, $trailing);
Expand Down

0 comments on commit 4e93439

Please sign in to comment.