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

03-26-chore_accordion_background_changes #398

Draft
wants to merge 1 commit into
base: next-gen-develop
Choose a base branch
from
Draft
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
29 changes: 23 additions & 6 deletions _sass/components/_details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ details.isomer-details summary {
&:empty {
justify-content: flex-end;
}
font-size: 20px;
}

details.isomer-details summary::marker {
Expand All @@ -15,8 +14,8 @@ details.isomer-details summary::marker {

details.isomer-details summary::after {
// Using sgds-icons.chevron-down
content: "\E93C";
font-family: "sgds-icons";
content: "\E93C";
transition: 0.25s transform ease;
margin-left: 0.75rem;
}
Expand Down Expand Up @@ -50,9 +49,17 @@ details.isomer-details {
margin-right: 1.25rem;
margin-bottom: 1rem;
}

.isomer-accordion-grey div.isomer-details-content > * {
margin-top: 1rem;
}

.isomer-accordion-white div.isomer-details-content > * {
margin-top: 0.25rem;
}
}

details.isomer-details ~ details.isomer-details {
.isomer-accordion-white details.isomer-details ~ details.isomer-details {
margin-top: 0;
margin-bottom: 0;
border-top: 0;
Expand Down Expand Up @@ -80,16 +87,26 @@ details.isomer-details ~ details.isomer-details {
background-color: #fff;
}

.isomer-accordion-white > details.isomer-details[open] > summary {
.isomer-accordion > details.isomer-details > summary {
cursor: pointer;
}

.isomer-accordion > details.isomer-details[open] > summary {
font-weight: 700;
}

.isomer-accordion-gray > details.isomer-details > summary {
.isomer-accordion-grey > details.isomer-details {
margin-top: 1rem;
margin-bottom: 1rem;
border: 0;
}
.isomer-accordion-grey > details.isomer-details > summary {
background-color: $interaction-support;

color: #4372d6;
}

.isomer-accordion-gray > details.isomer-details > summary:hover {
.isomer-accordion-grey > details.isomer-details > summary:hover {
color: #fff;
background-color: #4372d6;
}