Skip to content

Commit

Permalink
fix(accordion): CSS is now pulling in correct borders for dark mode (#…
Browse files Browse the repository at this point in the history
…1408)

* fix(accordion): CSS is now pulling in correct borders for dark mode

* Update .changeset/stupid-drinks-own.md

Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>

* fix(accordion): linting errors

---------

Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
  • Loading branch information
brianferry and bennypowers authored Jan 10, 2024
1 parent 108bb96 commit baa3820
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-drinks-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhds/elements": patch
---

`<rh-accordion>`: fixed border color for dark color palettes
6 changes: 4 additions & 2 deletions elements/rh-accordion/rh-accordion-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ a {
--_active-background-color: var(--rh-color-surface-darkest, #151515);
--_active-text-color: var(--rh-color-text-primary-on-dark, #ffffff);
--_expanded-background-color: var(--rh-color-accent-brand-on-dark, #ee0000);
--_border-inline-end-color: var(--rh-color-border-subtle-on-dark, #707070);
}

.rtl {
Expand All @@ -49,7 +48,10 @@ a {
}

:host([expanded]) {
border-inline-end: var(--rh-border-width-sm, 1px) solid var(--_border-inline-end-color, #c7c7c7);
border-inline-end:
var(--rh-border-width-sm, 1px)
solid
var(--_border-color, var(--rh-color-border-subtle-on-dark, #707070));
}

:host(.animating) #button,
Expand Down
2 changes: 1 addition & 1 deletion elements/rh-accordion/rh-accordion.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
background-color: var(--rh-color-surface-lightest, #ffffff);
}

:host([on="dark"]) {
.dark {
--_border-color: var(--rh-color-border-subtle-on-dark, #707070);
}

Expand Down

0 comments on commit baa3820

Please sign in to comment.