Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix tab styles
dominik-zegleneb0e60967bee
diff --git a/saleor/static/dashboard-next/components/Tab/Tab.tsx b/saleor/static/dashboard-next/components/Tab/Tab.tsxindex 7c0428e638..80c11f8df8 100644--- a/saleor/static/dashboard-next/components/Tab/Tab.tsx+++ b/saleor/static/dashboard-next/components/Tab/Tab.tsx@@ -13,7 +13,8 @@ const styles = (theme: Theme) =>active: {},root: {"&$active": {- borderBottomColor: theme.palette.primary.main+ borderBottomColor: theme.palette.primary.main,+ color: theme.typography.body1.color},"&:focus": {color: theme.palette.primary.main@@ -22,6 +23,7 @@ const styles = (theme: Theme) =>color: theme.palette.primary.main},borderBottom: "1px solid transparent",+ color: theme.typography.caption.color,cursor: "pointer",display: "inline-block",fontWeight: theme.typography.fontWeightRegular,diff --git a/saleor/static/dashboard-next/components/TableFilter/FilterTab.tsx b/saleor/static/dashboard-next/components/TableFilter/FilterTab.tsxindex 8b28d72d0b..b2b5c8e410 100644--- a/saleor/static/dashboard-next/components/TableFilter/FilterTab.tsx+++ b/saleor/static/dashboard-next/components/TableFilter/FilterTab.tsx@@ -5,10 +5,16 @@ import {WithStyles} from "@material-ui/core/styles";import Tab from "@material-ui/core/Tab";+import classNames from "classnames";import * as React from "react";const styles = (theme: Theme) =>createStyles({+ selectedTabLabel: {+ "&$tabLabel": {+ color: theme.typography.body1.color+ }+ },tabLabel: {color: theme.typography.caption.color,fontSize: "0.875rem"@@ -24,15 +30,21 @@ const styles = (theme: Theme) =>interface FilterTabProps extends WithStyles<typeof styles> {onClick: () => void;label: string;+ selected?: boolean;value?: number;}export const FilterTab = withStyles(styles, { name: "FilterTab" })(- ({ classes, onClick, label, value }: FilterTabProps) => (+ ({ classes, onClick, label, selected, value }: FilterTabProps) => (<TabdisableRipplelabel={label}- classes={{ root: classes.tabRoot, label: classes.tabLabel }}+ classes={{+ label: classNames(classes.tabLabel, {+ [classes.selectedTabLabel]: selected+ }),+ root: classes.tabRoot+ }}onClick={onClick}value={value}/>