Skip to content

Commit

Permalink
fix(accordion): update arrow spacing for start variant (#9777)
Browse files Browse the repository at this point in the history
Co-authored-by: Josefina Mancilla <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 4, 2021
1 parent 2da12d0 commit ec433dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions packages/components/src/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,15 @@

.#{$prefix}--accordion--start .#{$prefix}--accordion__arrow {
// Alters `$accordion-arrow-margin` token:
margin: 2px 0 0 $carbon--spacing-03;
margin: 2px 0 0 $carbon--spacing-05;
}

.#{$prefix}--accordion--start .#{$prefix}--accordion__title {
margin-right: $carbon--spacing-05;
}

.#{$prefix}--accordion--start .#{$prefix}--accordion__content {
margin-left: $carbon--spacing-06;
margin-left: $carbon--spacing-07;
}

.#{$prefix}--accordion__item--collapsing .#{$prefix}--accordion__content,
Expand Down
8 changes: 6 additions & 2 deletions packages/styles/scss/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,15 @@ $content-padding: 0 0 0 $spacing-05 !default;

.#{$prefix}--accordion--start .#{$prefix}--accordion__arrow {
// Alters `$arrow-margin` token:
margin: 2px 0 0 $spacing-03;
margin: 2px 0 0 $spacing-05;
}

.#{$prefix}--accordion--start .#{$prefix}--accordion__title {
margin-right: $spacing-05;
}

.#{$prefix}--accordion--start .#{$prefix}--accordion__content {
margin-left: $spacing-06;
margin-left: $spacing-07;
}

.#{$prefix}--accordion__item--collapsing .#{$prefix}--accordion__content,
Expand Down

0 comments on commit ec433dc

Please sign in to comment.