Skip to content

Commit

Permalink
Change to the display: flex; approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmunro-ltrr committed Apr 12, 2024
1 parent a01acaf commit afd1557
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions scss/_collapse.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Overrides & custom for the Collapse component

// make entire accordion header clickable for accessibility and UX
// Make entire accordion header clickable for accessibility and UX
.accordion {
.card-header {
padding: 0;
Expand All @@ -19,36 +19,27 @@
}

.btn {
display: block;
display: flex;
width: 100%;
padding: .75rem 2.25rem .75rem 1.25rem;
padding: .75rem 1.25rem;
color: $dark-silver;
text-align: left;
text-transform: none;
justify-content: space-between;
align-items: center;

&::after {
position: absolute;
top: 2px;
right: 10px;
display: inline-block;
// stylelint-disable-next-line
font-family: "Material Icons Sharp";
font-size: 2em;
font-variant-ligatures: no-common-ligatures;
content: "expand_more";
margin-left: 1rem;
line-height: 1rem;
}

}

@include media-breakpoint-up(sm) {
.btn {
padding-right: 3rem;
&::after {
right: 20px;
}
}

}
.btn[aria-expanded="true"] {
&::after {
content: "expand_less";
Expand Down

0 comments on commit afd1557

Please sign in to comment.