Skip to content

Commit

Permalink
Fix CSS to avoid doubling the top border
Browse files Browse the repository at this point in the history
  • Loading branch information
Dchyk committed Sep 6, 2024
1 parent ea946e7 commit 3d9c3e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 6 additions & 0 deletions src/Accordion/AccordionCollapse.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@
padding-top: 0px !important;
}
}
/* If the parent AccordionToggle has a border-bottom applied, remove the top one here */
.borderBottom {
.AccordionCollapse {
border-top: none;
}
}
12 changes: 4 additions & 8 deletions src/Accordion/AccordionToggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
grid-template-columns: auto 24px;
grid-template-areas: 'content chevron-right';
padding: 16px 24px;

&.borderBottom {
border-bottom: 1px solid var(--ux-gray-400);
}

&.flush {
padding: 16px 4px;
Expand All @@ -27,14 +31,6 @@
}
}

&.collapsed {
.AccordionToggle__container {
&.borderBottom {
border-bottom: 1px solid var(--ux-gray-400);
}
}
}

&--chevron-lateral {
.AccordionToggle__chevron-left {
svg {
Expand Down

0 comments on commit 3d9c3e3

Please sign in to comment.