[Feature Request]: Dynamic Page title size change
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:
-
::slotted([ui5-title][slot=“heading”]) { font-size: var(—sapObjectHeader_Title_FontSize); }
-
: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.
Hello @SAP/ui5-webcomponents-topic-p , take a look of this feature request. Kind regards,
Georgi
SAP Development Support
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
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
This issue has been closed. To reopen, just leave a comment!
: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: