Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

596 B
Raw Blame
import { Button, styled, type ButtonProps } from "@mui/material";
import type {} from "ente-base/components/utils/mui-theme";
import React from "react";

export const RippleDisabledButton: React.FC<ButtonProps> = (props) => (
    <Button disableRipple {...props} />
);

export const FocusVisibleButton = styled(RippleDisabledButton)(
    ({ theme }) => `
    &.Mui-focusVisible {
        outline: 1px solid ${theme.vars.palette.stroke.base};
        outline-offset: 2px;
    }
    &:active {
        outline: 1px solid ${theme.vars.palette.stroke.faint};
        outline-offset: 1px;
    }
`,
);