Skip to content

Commit

Permalink
Better color in Dialog's buttons when on dark mode, closes #1179.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwod committed Sep 19, 2022
1 parent 88ae52a commit 69a3346
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion new-client/src/components/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ export default function ResponsiveDialog(props) {
<Button onClick={handleClose} variant={primaryButtonVariant || "text"}>
{buttonText}
</Button>
{abortText && <Button onClick={handleAbort}>{abortText}</Button>}
{abortText && (
<Button onClick={handleAbort} sx={{ color: "text.primary" }}>
{abortText}
</Button>
)}
</DialogActions>
</Dialog>
);
Expand Down

0 comments on commit 69a3346

Please sign in to comment.