SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.9k stars 1.23k forks source link

Extend sap.m.FormattedText with additional HTML tags #3725

Open thuethe opened 1 year ago

thuethe commented 1 year ago

Is there a reason why sap.m.FormattedText is limited to just this set of HTML tags? Would there be anything against extending it with the following tags, especially mark?

unazko commented 1 year ago

Hello @thuethe,

Could you describe your use case in more detail and give us an example of how this should look in the application(screenshot). While reading the UX guidelines I've stumbled upon the following recommendations:

"Use the formatted text control to:

Do not use the formatted text control to:

According to your description you could potentially use the sap.m.ObjectStatus control, in order to highlight (give a semantic meaning) to a part of a given text.

Please have a look at the following sample: https://ui5.sap.com/#/entity/sap.m.ObjectStatus/sample/sap.m.sample.ObjectStatus There is a section for indication colors.

Best regards, Boyan

thuethe commented 1 year ago

Hello @unazko ,

I can imagine many use cases. My concrete example would be a text in which I want to highlight a search result in color. See screenshot:

Bildschirm­foto 2023-03-29 um 22 09 19

But useful use cases can also be found for the other tags I listed.

Best regards

yanaminkova commented 1 year ago

Hello @thuethe,

Thank you for sharing your enhancement proposal. I've created an internal incident 2370037041. The status of the issue will be updated here in GitHub.

Regards, Yana