From ef5e37dc71296e6bf514f886a2ca2b84a024240f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 1 Dec 2026 18:15:56 -0500 Subject: [PATCH] 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 --- app/components/ButtonLarge.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/components/ButtonLarge.ts b/app/components/ButtonLarge.ts index 24e28947d7..633886cad8 100644 --- a/app/components/ButtonLarge.ts +++ b/app/components/ButtonLarge.ts @@ -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;