Skip to content

docs(ui5-li): clarify usage and limitations of default slot #11492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kgogov
Copy link
Member

@kgogov kgogov commented May 8, 2025

Fixes: #11489

@kgogov kgogov requested a review from nnaydenow May 8, 2025 14:46
* **Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design. <br/>
* **Note:** Deprecated since version `2.10.0`. Use the `text` property instead. <br/>
* Only use the default slot if you need to apply custom text formatting with HTML elements (like `<b>`, `<i>`, etc.).
* **Note:** Strongly recommended to use the `text` property for optimal wrapping and consistent layout. <br/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kgogov
slight changes in wording for more polished version, suggested by editing tools : D

Note: For optimal text wrapping and a consistent layout, it is strongly recommended to use the text property.

Use the default slot only when custom formatting with HTML elements (e.g., <b>, <i>) is required.
Be aware that wrapping (via wrappingType="Normal") may not function correctly with custom HTML content in the default slot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(ui5-list): Clarify default slot usage in list item docs
2 participants