Skip to content

Commit

Permalink
fix(skeleton): dark mode theme (chakra-ui#7115)
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 authored Dec 16, 2022
1 parent 37b7a13 commit 8992c86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/itchy-rivers-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@chakra-ui/skeleton": patch
---

Fix theme being overidden in dark mode
2 changes: 1 addition & 1 deletion packages/components/skeleton/src/skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const Skeleton = forwardRef<SkeletonProps, "div">((props, ref) => {
width: fitContent ? "fit-content" : undefined,
...styles,
...cssVarStyles,
_dark: { ...cssVarStyles },
_dark: { ...(styles as any)["_dark"], ...cssVarStyles },
animation: `${speed}s linear infinite alternate ${bgFade}`,
}}
/>
Expand Down

0 comments on commit 8992c86

Please sign in to comment.