Files
outline/app/components/ButtonLarge.ts
T
Tom Moor ef5e37dc71 fix: Vertically center text in large buttons on mobile (#14841)
* fix: Vertically center text in large buttons on mobile

* fix: Use mobile touch target height for large buttons
2026-12-01 18:15:56 -05:00

24 lines
488 B
TypeScript

import styled from "styled-components";
import { breakpoint } from "@shared/styles/breakpoint";
import { MOBILE_TOUCH_TARGET } from "@shared/constants";
import Button, { Inner } from "./Button";
const ButtonLarge = styled(Button)`
height: 40px;
${Inner} {
padding: 0 16px;
min-height: 40px;
}
${breakpoint("mobile", "tablet")`
height: ${MOBILE_TOUCH_TARGET}px;
${Inner} {
min-height: ${MOBILE_TOUCH_TARGET}px;
}
`};
`;
export default ButtonLarge;