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
This commit is contained in:
Tom Moor authored and GitHub committed 2026-12-01 18:15:56 -05:00
1 parent 0ef271bd9f
commit ef5e37dc71
1 file changed
+12 -1
+12 -1
View File
@@ -1,12 +1,23 @@
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: 4px 16px;
padding: 0 16px;
min-height: 40px;
}
${breakpoint("mobile", "tablet")`
height: ${MOBILE_TOUCH_TARGET}px;
${Inner} {
min-height: ${MOBILE_TOUCH_TARGET}px;
}
`};
`;
export default ButtonLarge;