ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[Feature Request]: Dynamic Page title size change

Open Dannysht opened this issue 6 months ago • 3 comments

Feature Request Description

Currently, we are unable to override the default font size except by using a custom CSS. The current implementation is as follows:

  1. ::slotted([ui5-title][slot=“heading”]) { font-size: var(—sapObjectHeader_Title_FontSize); }

  2. :host([size=“H2”]) { font-size: var(—sapFontHeader5Size); }

Note that rule 1 has higher priority than rule 2.

Proposed Solution

The size property should take priority over the heading property.

Proposed Alternatives

No response

Organization

BLDX

Additional Context

No response

Priority

Medium

Privacy Policy

  • [x] I’m not disclosing any internal or sensitive information.

Dannysht avatar Jun 12 '25 13:06 Dannysht

Hello @SAP/ui5-webcomponents-topic-p , take a look of this feature request. Kind regards, 

Georgi

SAP Development Support

Valkanister avatar Jun 12 '25 14:06 Valkanister

Hello @Dannysht,

thanks for reporting this!

Indeed, it is not possible to change the size of the heading. While we rethink our implementaiton, could you please provide more about what you're trying to achieve?

As I undestarnd, you want to change the ui5-title's font-size using the size property and not custom CSS.

For example:

<ui5-title size="H2" ....

Please confirm if above is what you need? Also, what value do you want the size to be - H1, H2, ect. ? This information would help us to support your request best.

Best Regards, Dobrin

dobrinyonkov avatar Jun 26 '25 11:06 dobrinyonkov

Hello,

Yes I can confirm that what the stated above is what we need. I do not remember exactly the size we needed, we did the workaround with custom css until this is fixed.

Regards, Daniel

Dannysht avatar Jun 27 '25 06:06 Dannysht

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Jul 21 '25 08:07 github-actions[bot]

:tada: This issue has been resolved in version v2.13.0-rc.2 :tada:

The release is available on v2.13.0-rc.2

Your semantic-release bot :package::rocket:

ui5-webcomponents-bot avatar Jul 24 '25 08:07 ui5-webcomponents-bot