17
Views
2
Comments
[OutSystems UI Style Guide Preview] Font size hard coded for tablet and phone
outsystems-ui-style-guide-preview
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

The Font sizes on phone and tablet are hardcoded - could you update them to pick up the current values? 

For example, I've done this but have to remember to merge it every time you update the component.


2024-05-14 06-49-08
Karnika-EONE

Hi @Tim Bates


const box = document.getElementById($parameters.Button_ID);

box.style.width = $parameters.Width;

box.style.height = $parameters.Height;

box.style.backgroundColor = $parameters.Backgroundcolor;

box.style.fontSize = $parameters.Fontsize;

box.style.color = $parameters.Fontcolor;

like this.

I have attached the OML.PLease Refer ExampleCss Screen.

Best Regards

Thanks

Karnika.K

ExampleApp.oml
2021-01-27 15-37-38
Tim Bates

Thanks for trying to help but I've obviously not been clear. 

I'm asking whether the authors of this forge component can update the phone and tablet font properties to be dynamic based on the CSS. I already know how to do this, see screen shots in initial post, but I have to manually update the component after each forge update.

This is Desktop - the Size is driven by the CSS value.

This is Phone or Tablet - the Size is hard coded irrespective of the actual CSS value.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.