Skip to content

Commit

Permalink
Update savebar buttons (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed Nov 25, 2021
1 parent 538a94e commit cbdbbea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/ActionBar/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const useStyles = makeStyles(
paddingBottom: theme.spacing(2),
},
display: "flex",
gap: theme.spacing(2),
paddingBottom: theme.spacing(2),
paddingTop: theme.spacing(2),
[theme.breakpoints.down("sm")]: {
Expand Down
10 changes: 5 additions & 5 deletions src/Savebar/Savebar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Button from "@material-ui/core/Button";
import React from "react";
import { Button } from "..";

import { useActionBar } from "../ActionBar";
import { ActionBar } from "../ActionBar/ActionBar";
Expand Down Expand Up @@ -43,9 +43,9 @@ export const Savebar: React.FC<SavebarProps> = ({
{!!onDelete && (
<ButtonTooltipDecorator tooltip={tooltips?.delete}>
<Button
variant="contained"
error
variant="primary"
onClick={onDelete}
className={classes.deleteButton}
data-test="button-bar-delete"
>
{labels.delete}
Expand All @@ -55,8 +55,8 @@ export const Savebar: React.FC<SavebarProps> = ({
<div className={classes.spacer} />
<ButtonTooltipDecorator tooltip={tooltips?.cancel}>
<Button
className={classes.cancelButton}
variant="text"
color="text"
variant="secondary"
onClick={onCancel}
data-test="button-bar-cancel"
>
Expand Down
15 changes: 1 addition & 14 deletions src/Savebar/styles.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
import { makeStyles } from "../theme";

const useStyles = makeStyles(
(theme) => ({
button: {
marginRight: theme.spacing(1),
},
cancelButton: {
marginRight: theme.spacing(2),
},
deleteButton: {
"&:hover": {
backgroundColor: theme.palette.error.dark,
},
backgroundColor: theme.palette.error.main,
color: theme.palette.error.contrastText,
},
() => ({
spacer: {
flex: "1",
},
Expand Down

0 comments on commit cbdbbea

Please sign in to comment.