Skip to content

Commit

Permalink
Fix text inside Panel having the incorrect color when color-scheme is…
Browse files Browse the repository at this point in the history
… not set or doesn't change the default text color e.g. in Safari (#3168)
  • Loading branch information
libertymayc authored Sep 5, 2024
1 parent 6a9ba98 commit cee2b63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/plenty-pans-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@salt-ds/core": patch
---

Fixed text inside Panel having the incorrect color when color-scheme is not set or doesn't change the default text color e.g. in Safari.
2 changes: 1 addition & 1 deletion packages/core/src/panel/Panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/* Styles applied to the root element */
.saltPanel {
background: var(--saltPanel-background, var(--panel-background));
color: var(--saltPanel-color, initial);
color: var(--saltPanel-color, inherit);
height: var(--saltPanel-height, 100%);
overflow: auto;
padding: var(--saltPanel-padding, var(--salt-size-container-spacing));
Expand Down

0 comments on commit cee2b63

Please sign in to comment.