diff --git a/site/src/components/FormFooter/FormFooter.tsx b/site/src/components/FormFooter/FormFooter.tsx index f7278d6fc6..916bcc9629 100644 --- a/site/src/components/FormFooter/FormFooter.tsx +++ b/site/src/components/FormFooter/FormFooter.tsx @@ -18,7 +18,9 @@ const useStyles = makeStyles((theme) => ({ footer: { display: "flex", flex: "0", - flexDirection: "row", + // The first button is the submit so it is the first element to be focused + // on tab so we use row-reverse to display it on the right + flexDirection: "row-reverse", gap: theme.spacing(1.5), alignItems: "center", marginTop: theme.spacing(3), @@ -36,10 +38,8 @@ export const FormFooter: FC> = ({ const styles = useStyles() return (
- > = ({ > {submitLabel} +
) } diff --git a/site/src/theme/palettes.ts b/site/src/theme/palettes.ts index 330c0f82ab..90148f5f5a 100644 --- a/site/src/theme/palettes.ts +++ b/site/src/theme/palettes.ts @@ -14,7 +14,7 @@ export const darkPalette: PaletteOptions = { type: "dark", primary: { main: colors.blue[7], - contrastText: colors.gray[4], + contrastText: colors.blue[1], light: colors.blue[6], dark: colors.blue[9], },