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

Add padding to accordion content #1727

Merged
merged 13 commits into from
Dec 30, 2022
3 changes: 2 additions & 1 deletion scss/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
// Boosted mod: no --#{$prefix}accordion-btn-focus-box-shadow
--#{$prefix}accordion-body-padding-x: #{$accordion-body-padding-x};
--#{$prefix}accordion-body-padding-y: #{$accordion-body-padding-y};
--#{$prefix}accordion-body-padding-top: #{$accordion-body-padding-top};
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved
--#{$prefix}accordion-active-color: #{$accordion-button-active-color};
--#{$prefix}accordion-active-bg: #{$accordion-button-active-bg};
// scss-docs-end accordion-css-vars
Expand Down Expand Up @@ -119,7 +120,7 @@
}

.accordion-body {
padding: 0 var(--#{$prefix}accordion-body-padding-x) var(--#{$prefix}accordion-body-padding-y) 0; // Boosted mod
padding: var(--#{$prefix}accordion-body-padding-top) var(--#{$prefix}accordion-body-padding-x) var(--#{$prefix}accordion-body-padding-y) 0; // Boosted mod
}

// Boosted mod: no Flush accordion items
Expand Down
1 change: 1 addition & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,7 @@ $accordion-border-color: $gray-500 !default; // Boosted mod
$accordion-border-radius: $border-radius !default;
$accordion-inner-border-radius: subtract($accordion-border-radius, #{$accordion-border-width}) !default;

$accordion-body-padding-top: 5px !default; // Boosted mod
julien-deramond marked this conversation as resolved.
Show resolved Hide resolved
$accordion-body-padding-y: $spacer !default; // Boosted mod
$accordion-body-padding-x: $spacer !default; // Boosted mod
louismaximepiton marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
2 changes: 2 additions & 0 deletions site/content/docs/5.2/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ If you need more details about the changes, please refer to the [v5.2.3 release]
<li><code>--bs-table-striped-color</code></li>
<li><code>--bs-table-striped-hover-bg</code></li>
<li><code>--bs-table-striped-hover-color</code></li>
<li><code>--bs-body-padding-top</code></li>
</ul>
</details>

Expand Down Expand Up @@ -146,6 +147,7 @@ If you need more details about the changes, please refer to the [v5.2.3 release]
<li><code>$table-variant-hover-bg-factor</code></li>
<li><code>$table-variant-striped-hover-bg</code></li>
<li><code>$table-variant-striped-hover-bg-factor</code></li>
<li><code>$accordion-body-padding-top</code></li>
</ul>
</details>

Expand Down