Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(accordion): update accordion breakpoints #5074

Merged
merged 6 commits into from
Jan 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/components/src/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,17 @@
// Transition property for when the accordion closes
transition: padding motion(standard, productive) $duration--fast-02;
padding-left: $carbon--spacing-05;
padding-right: 25%;
padding-right: $carbon--spacing-05;

@include carbon--breakpoint-down('md') {
// Custom breakpoints based on issue #4993
@include carbon--breakpoint-up(480px) {
padding-right: $carbon--spacing-09;
}

@include carbon--breakpoint-up(640px) {
padding-right: 25%;
}

p {
@include type-style('body-long-01');
}
Expand Down