-
Notifications
You must be signed in to change notification settings - Fork 273
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
[SF][RatingIndicator]: Updated title attribute on the ui5 component will not be reflected in the shadow dom #7264
Comments
Hi @Jasonl157 thanks for creating a reproducible example, I can confirm now that the internal Hi colleagues, even though the --> codeSandbox using ui5wc with plain js |
Hello @SAP/ui5-webcomponents-topic-rl, After looking carefully at the reported case I also agree with was said from @Lukas742. From developer perspective we should be able to update the title attribute value. I am forwarding this to you for better examination. His code example demonstrates the issue. Best regards, |
Hello @Jasonl157 , In the API of the ui5-rating-indicator there is no property title, therefore my suggestion could be to also update the pointed shadow dom div directly as you could access the ui5-rating-indicator component and get the dom ref - ui5-rating-indicator.getDomRef().setAttribute("title", "Updated title"); Best regards, |
Hi @Okiana from my understanding it should never be necessary to hook into the shadow DOM to update the web component. That's why it's encapsulated in the first place, isn't it? Furthermore the https://sapui5.hana.ondemand.com/#/entity/sap.m.RatingIndicator/sample/sap.m.sample.RatingIndicator |
Hello @Lukas742, The In UI5 classic there is a tooltip aggregation available, thus the control supports it. As we do not currently provide a title or tooltip property in RatingIndicator, the component has no way to know if it is updated as it is not part of its state and could not get re-rendered. If you want such API added a feature request should be created, discussed and planned. Kind regards |
Hi @ndeshev thanks for the reply. I understand your point, but when looking from a developer point of view, who is used to how the For example: The For other components like the Here you can find a codeSandbox with examples of what I tried to describe above. In short: |
I also do understand your stand point. I will tag the issue as a feature request and reopen it to implement the additional API in order to avoid the current half-working tooltip behavior. |
Internal BLI was created: BGSOFUIRILA-3688 |
Describe the bug
Updated title attribute on the ui5 component will not be reflected in the shadow dom
<div class="ui5-rating-indicator-root"...>
Isolated Example
https://codesandbox.io/s/nervous-bush-fdwxk7?file=/src/App.js
Reproduction steps
<ui5-rating-indicator>
and its shadow root<div class="ui5-rating-indicator-root"...>
<ui5-rating-indicator>
and you will find the title of shadow root<div class="ui5-rating-indicator-root"...>
remains unchangedExpected Behaviour
Title of shadow root
<div class="ui5-rating-indicator-root"...>
should be updated accordinglyScreenshots or Videos
Rating.Indicator.title.issue.mov
UI5 Web Components for React Version
1.11.0 and 1.16.0
UI5 Web Components Version
1.11.0 and 1.14.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Relevant log output
No response
Declaration
The text was updated successfully, but these errors were encountered: