Fix tabs style in dark mode

This commit is contained in:
Krzysztof Bialoglowicz 2019-09-10 18:23:59 +02:00
parent c0cc82aae1
commit ec7f2366cf
3 changed files with 14 additions and 5 deletions

View file

@ -4,13 +4,16 @@ import {
withStyles,
WithStyles
} from "@material-ui/core/styles";
import { fade } from "@material-ui/core/styles/colorManipulator";
import Typography from "@material-ui/core/Typography";
import classNames from "classnames";
import React from "react";
const styles = (theme: Theme) =>
createStyles({
active: {},
active: {
color: theme.typography.caption.color
},
root: {
"&$active": {
borderBottomColor: theme.palette.primary.main,
@ -23,7 +26,7 @@ const styles = (theme: Theme) =>
color: theme.palette.primary.main
},
borderBottom: "1px solid transparent",
color: theme.typography.caption.color,
color: fade(theme.typography.caption.color, 0.6),
cursor: "pointer",
display: "inline-block",
fontWeight: theme.typography.fontWeightRegular,

View file

@ -20,7 +20,8 @@ const dark: IThemeColors = {
button: "#202124",
default: "#FCFCFC",
gray: "#9E9D9D",
textButton: "#FFFFFF"
textButton: "#FFFFFF",
textDisabled: "#FCFCFC"
},
gray: {
default: "#202124",
@ -53,7 +54,8 @@ const light: IThemeColors = {
button: "#FFFFFF",
default: "#3D3D3D",
gray: "#616161",
textButton: "#06847B"
textButton: "#06847B",
textDisabled: "#616161"
},
gray: {
default: "#C8C8C8",

View file

@ -19,7 +19,10 @@ export type IThemeColors = Record<
} & {
checkbox: Record<"default" | "disabled", string>;
} & {
font: Record<"default" | "gray" | "button" | "textButton", string>;
font: Record<
"default" | "gray" | "button" | "textButton" | "textDisabled",
string
>;
} & {
gray: Record<"default" | "disabled", string>;
} & {
@ -397,6 +400,7 @@ export default (colors: IThemeColors): Theme =>
},
primary: {
contrastText: "#ffffff",
dark: colors.font.textDisabled,
main: colors.primary
},
secondary: {