mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 12:12:54 +01:00
theme: add selected variant
This commit is contained in:
@@ -160,6 +160,12 @@ function buildVariants(
|
||||
...theme.scopes.base.success,
|
||||
...themeScope.success
|
||||
},
|
||||
selected: {
|
||||
...defaultThemeBase.selected,
|
||||
...defaultThemeScope.selected,
|
||||
...theme.scopes.base.selected,
|
||||
...themeScope.selected
|
||||
},
|
||||
static: StaticColors
|
||||
};
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ export type Variants<TRequired extends boolean = false> = {
|
||||
primary: TRequired extends true ? Colors : Partial<Colors>;
|
||||
secondary: TRequired extends true ? Colors : Partial<Colors>;
|
||||
disabled: TRequired extends true ? Colors : Partial<Colors>;
|
||||
// selected: TRequired extends true ? Colors : Partial<Colors>;
|
||||
selected: TRequired extends true ? Colors : Partial<Colors>;
|
||||
error: TRequired extends true ? Colors : Partial<Colors>;
|
||||
success: TRequired extends true ? Colors : Partial<Colors>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user