Skip to content

Commit

Permalink
fix: SidePanel for the theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrancois committed Jul 20, 2023
1 parent 354c969 commit f2a2ed7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/components/src/SidePanel/SidePanel.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ function SidePanel({
const toggleButtonTitle = docked ? expandLabel : collapseTitle;
const Components = Inject.getAll(getComponent, { Action, ActionList });
return (
<nav id={id} className={navCSS} role="navigation" ref={ref} style={{ width }}>
<nav
id={id}
className={navCSS}
role="navigation"
ref={ref}
style={{ width }}
data-theme="light"
>
{backgroundIcon && (
<style>
{`#${id}::before {
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/SidePanel/SidePanel.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ $large-docked-width: 7rem;

&.reverse[role='navigation'] {
background: tokens.$coral-color-neutral-background-medium !important;
color: tokens.$coral-color-neutral-text !important;

&::before {
content: none;
Expand Down

0 comments on commit f2a2ed7

Please sign in to comment.