Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve accessibility
dominik-zeglen329c533bd96f
diff --git a/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsx b/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsxindex 50b311954f..8866b246d8 100644--- a/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsx+++ b/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsx@@ -36,9 +36,6 @@ const styles = (theme: Theme) =>},tableRow: {cursor: "pointer"- },- textCenter: {- textAlign: "center"}});@@ -90,9 +87,7 @@ const CollectionProducts = withStyles(styles, { name: "CollectionProducts" })(<TableRow><TableCell /><TableCell>{i18n.t("Name", { context: "table header" })}</TableCell>- <TableCell className={classes.textCenter}>- {i18n.t("Type", { context: "table header" })}- </TableCell>+ <TableCell>{i18n.t("Type", { context: "table header" })}</TableCell><TableCell>{i18n.t("Published", { context: "table header" })}</TableCell>@@ -126,7 +121,7 @@ const CollectionProducts = withStyles(styles, { name: "CollectionProducts" })(<TableCell>{maybe<React.ReactNode>(() => product.name, <Skeleton />)}</TableCell>- <TableCell className={classes.textCenter}>+ <TableCell>{maybe<React.ReactNode>(() => product.productType.name,<Skeleton />diff --git a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsxindex 2e5b0ac037..1a523095f0 100644--- a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx+++ b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx@@ -38,6 +38,9 @@ import AppHeaderContext from "./AppHeaderContext";const styles = (theme: Theme) =>createStyles({+ "@global": {+ "@import": "url('https://rsms.me/inter/inter.css')"+ },appAction: {bottom: 0,gridColumn: 2,diff --git a/saleor/static/dashboard-next/components/AppLayout/consts.ts b/saleor/static/dashboard-next/components/AppLayout/consts.tsindex 16a7a446d7..eb1ecfeef7 100644--- a/saleor/static/dashboard-next/components/AppLayout/consts.ts+++ b/saleor/static/dashboard-next/components/AppLayout/consts.ts@@ -1,3 +1,3 @@export const drawerWidth = 256;export const navigationBarHeight = 64;-export const appLoaderHeight = 2;+export const appLoaderHeight = 4;diff --git a/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx b/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsxindex 0770ac216d..70495ea55f 100644--- a/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx+++ b/saleor/static/dashboard-next/components/CardTitle/CardTitle.tsx@@ -12,7 +12,7 @@ const styles = (theme: Theme) =>createStyles({children: theme.mixins.gutters({}),constantHeight: {- height: 48+ height: 56},hr: {border: "none",@@ -29,8 +29,6 @@ const styles = (theme: Theme) =>}),title: {flex: 1,- fontSize: "1rem",- fontWeight: 600 as 600,lineHeight: 1},toolbar: {@@ -68,7 +66,7 @@ const CardTitle = withStyles(styles, { name: "CardTitle" })(><TypographyclassName={classes.title}- variant="body1"+ variant="headline"onClick={onClick}component="span">diff --git a/saleor/static/dashboard-next/components/Grid/Grid.tsx b/saleor/static/dashboard-next/components/Grid/Grid.tsxindex 69a211aa9e..38060944af 100644--- a/saleor/static/dashboard-next/components/Grid/Grid.tsx+++ b/saleor/static/dashboard-next/components/Grid/Grid.tsx@@ -23,7 +23,7 @@ const styles = (theme: Theme) =>},root: {display: "grid",- gridColumnGap: theme.spacing.unit * 2 + "px",+ gridColumnGap: theme.spacing.unit * 3 + "px",gridRowGap: theme.spacing.unit * 3 + "px",[theme.breakpoints.down("sm")]: {gridRowGap: theme.spacing.unit + "px",diff --git a/saleor/static/dashboard-next/components/PageHeader/PageHeader.tsx b/saleor/static/dashboard-next/components/PageHeader/PageHeader.tsxindex f437be1436..dd87de4fe5 100644--- a/saleor/static/dashboard-next/components/PageHeader/PageHeader.tsx+++ b/saleor/static/dashboard-next/components/PageHeader/PageHeader.tsx@@ -14,6 +14,7 @@ const styles = (theme: Theme) =>createStyles({title: {flex: 1,+ fontSize: 24,paddingBottom: theme.spacing.unit * 2}});@@ -29,7 +30,7 @@ const PageHeader = withStyles(styles)(<ExtendedPageHeaderclassName={className}title={- <Typography className={classes.title} variant="title">+ <Typography className={classes.title} variant="headline">{title !== undefined ? title : <Skeleton style={{ width: "10em" }} />}</Typography>}diff --git a/saleor/static/dashboard-next/components/RichTextEditor/RichTextEditor.tsx b/saleor/static/dashboard-next/components/RichTextEditor/RichTextEditor.tsxindex ea1d1c7439..240bd15b71 100644--- a/saleor/static/dashboard-next/components/RichTextEditor/RichTextEditor.tsx+++ b/saleor/static/dashboard-next/components/RichTextEditor/RichTextEditor.tsx@@ -65,6 +65,7 @@ const styles = (theme: Theme) =>marginTop: theme.spacing.unit * 0.75},label: {+ fontSize: theme.typography.caption.fontSize,marginBottom: theme.spacing.unit * 2},root: {diff --git a/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx b/saleor/static/dashboard-next/configuration/ConfigurationPage.tsxindex c56d9d9106..a3f9010527 100644--- a/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx+++ b/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx@@ -28,7 +28,7 @@ const styles = (theme: Theme) =>createStyles({card: {"&:hover": {- boxShadow: theme.shadows[12]+ boxShadow: "0px 5px 15px rgba(0, 0, 0, 0.15);"},cursor: "pointer",marginBottom: theme.spacing.unit * 3,diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.tsindex e41b0a99b3..f475ab1081 100644--- a/saleor/static/dashboard-next/theme.ts+++ b/saleor/static/dashboard-next/theme.ts@@ -7,10 +7,11 @@ const createShadow = (pv, pb, ps, uv, ub, us, av, ab, as) =>`0 ${av}px ${ab}px ${as}px rgba(0, 0, 0, 0.12)`].join(",");-// const primary = "#2bb673";-const primary = "#5AB378";-const secondary = "#03a9f4";-const error = "#CD5E5E";+const primary = "#13BEBB";+// TODO: fix secondary buttons lol+const secondary = "#13BEBB";+const error = "#C22D74";+const fontColor = "#3d3d3d";export const ICONBUTTON_SIZE = 48;@@ -29,7 +30,9 @@ export default createMuiTheme({},MuiCard: {root: {- borderRadius: 8+ border: "1px solid #EAEAEA",+ borderRadius: 8,+ boxShadow: "none"}},MuiCardActions: {@@ -46,10 +49,6 @@ export default createMuiTheme({opacity: "initial !important" as "initial"}},- root: {- color: "#616161",- fontSize: "0.875rem"- },underline: {"&:after": {borderBottomColor: primary@@ -108,10 +107,11 @@ export default createMuiTheme({},MuiTableCell: {body: {- color: "#616161"+ fontSize: ".875rem",+ paddingBottom: 8,+ paddingTop: 8},head: {- color: "#616161",fontSize: ".875rem",fontWeight: 600},@@ -142,6 +142,9 @@ export default createMuiTheme({}},palette: {+ background: {+ default: "#F1F6F6"+ },error: {main: error},@@ -154,7 +157,7 @@ export default createMuiTheme({main: secondary},text: {- primary: "#616161"+ primary: fontColor}},shadows: [@@ -185,9 +188,19 @@ export default createMuiTheme({createShadow(9, 46, 8, 11, 15, -7, 24, 38, 3)],typography: {+ allVariants: {+ fontFamily: '"Inter", "roboto", "sans-serif"'+ },+ body1: {+ color: fontColor,+ fontSize: "1rem"+ },body2: {fontSize: "0.75rem",fontWeight: 600 as 600+ },+ headline: {+ fontSize: "1.3125rem"}}});