Responsive Text

Hi

Is it possible to have responsive text in buttons or labels, for example that will automatically resize depending on the platform?

I have tried a flex container and coordinate container with the mode set to percent but the text remains the same size.

Thanks

You could use something like the fontSize property in styles set to some numeric percent, but it’s a percent against original size, not container fill, so even using the fontSize route you would still probably want to expression bind against something like session.props.device.type, a la

if({session.props.device.type}=="browser","200%","125%")
2 Likes

Thanks a million for your help @cmallonee

1 Like

At the present, if I don’t misunderstand we still can use this solution. But now we can use such as Media Query to make text responsive, right?