updated accordian and dropdown to not overlap the arrow, provide enough space for the arrow, and keep the arrow at the top when theres multi-lines for the sumary text.

Reverted back the container padding.
This commit is contained in:
Yohn 2025-02-05 21:22:40 -05:00
parent e8bfb763ff
commit 869da59717
4 changed files with 37 additions and 23 deletions

View file

@ -7,7 +7,7 @@
*/
#{$parent-selector} details {
display: block;
margin-bottom: var(#{$css-var-prefix}spacing);
margin-block-end: var(#{$css-var-prefix}spacing);
@if $enable-classes {
&.hide-arrow > summary::after {
@ -16,9 +16,13 @@
}
}
&:not(.hide-arrow) > summary {
padding-inline-end: calc(var(#{$css-var-prefix}nav-link-spacing-horizontal) * 3.25);
}
summary {
position: relative;
padding-inline-end: var(#{$css-var-prefix}block-spacing-horizontal);
//padding-inline-end: var(#{$css-var-prefix}block-spacing-horizontal);
line-height: 1rem;
list-style-type: none;
cursor: pointer;
@ -91,13 +95,11 @@
}
}
}
//!
//!
//!
// Open
&[open] {
> summary {
margin-bottom: var(#{$css-var-prefix}spacing);
margin-block-end: var(#{$css-var-prefix}spacing);
&:not([role]) {
&:not(:focus) {