compose-pay-button icon indicating copy to clipboard operation
compose-pay-button copied to clipboard

Setting height of button

Open rasmusandersson5 opened this issue 2 years ago β€’ 8 comments

Is there any way of setting the height of the button? Modifier.height only sets the height of the container and not the actual button

rasmusandersson5 avatar Nov 03 '23 07:11 rasmusandersson5

@rasmusandersson5 Right. This is currently not possible. Could you elaborate a bit more on your use case? Maybe share a screenshot of your screen indicating why you need the height to be adjustable? Thanks for your help.

dmengelt avatar Nov 03 '23 15:11 dmengelt

Hi!

Basically I want the button to align with other button heights from our design system. Show a Google Pay button together with, let's say, our own "Continue" button looks a bit bad now since the height is not exactly the same.

rasmusandersson5 avatar Nov 04 '23 08:11 rasmusandersson5

Thanks for the clarifications @rasmusandersson5 Any chance you could share a screenshot with me? I would love to see how it looks...

dmengelt avatar Nov 04 '23 09:11 dmengelt

This is probably all I can give you atm 😁 The text is "Continue" in Swedish πŸ‡ΈπŸ‡ͺ

Screenshot 2023-11-05 at 14 32 55

rasmusandersson5 avatar Nov 06 '23 07:11 rasmusandersson5

Hello, posting here to add that this is something that we'd also like (same scenario πŸ˜„ )

cmargonis avatar Jan 31 '24 12:01 cmargonis

+1

naltynbekkz avatar Jun 21 '24 03:06 naltynbekkz

Hello, same issue for me. According to the guidelines, each payment button should have the same size, unfortunately that's not possible without changing the height

LaurentLixfe avatar Jul 03 '24 06:07 LaurentLixfe

Same ask from me. We show the GPay button adjacent to buttons for other payment options, and we want to be able to bring some uniformity to the buttons without having to restyle our other buttons to match the GPay button

jmartinVMLYR avatar May 16 '25 14:05 jmartinVMLYR