Skip to content
Snippets Groups Projects
Commit e8b41c07 authored by Phoomparin Mano's avatar Phoomparin Mano Committed by Metabase bot
Browse files

fix(sdk): entity picker theming fixes (#50449)

* use css variables for skeleton background color

* apply theme to folder color

* replace theme.white with themeColor

* use name of folder chevron color

* add background-inverse color mapping

* Revert "add background-inverse color mapping"

This reverts commit d0b546c5.

* avoid overriding folder chevron color in emotion

* use Mantine style overrides for NavLink
parent 793f8180
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ export const getSkeletonOverrides = (): MantineThemeOverride["components"] => {
return {
// We replace Mantine's pulsing animation with a shimmer animation
root: {
backgroundColor: "rgba(245,248,250,1.0)",
backgroundColor: "var(--mb-color-background-disabled)",
"&::before": {
background:
"linear-gradient(100deg, transparent, var(--mb-color-bg-medium), transparent) ! important",
......
......@@ -51,10 +51,12 @@ export const getSegmentedControlOverrides =
backgroundColor: theme.fn.themeColor("bg-medium"),
},
controlActive: {
backgroundColor: shouldAnimate ? theme.white : undefined,
backgroundColor: shouldAnimate
? theme.fn.themeColor("bg-white")
: undefined,
},
indicator: {
backgroundColor: theme.white,
backgroundColor: theme.fn.themeColor("bg-white"),
},
};
},
......
......@@ -13,6 +13,12 @@ export const getNavLinkOverrides = (): MantineThemeOverride["components"] => ({
icon: {
color: theme.fn.themeColor("text-dark"),
},
rightSection: {
// Apply default icon color for section icons when inactive
"&:not([data-active] &)": {
color: "var(--mb-color-text-primary)",
},
},
}),
variants: {
default: () => ({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment