Skip to content
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

Tooltip not being displayed in ObjectStatus #4149

Open
tangirmiah opened this issue Oct 18, 2024 · 0 comments
Open

Tooltip not being displayed in ObjectStatus #4149

tangirmiah opened this issue Oct 18, 2024 · 0 comments

Comments

@tangirmiah
Copy link

OpenUI5 version: 1.120.21

Browser/version (+device/version):Chrome

Any other tested browsers/devices(OK/FAIL):Edge

URL (minimal example if possible): https://sdk.openui5.org/entity/sap.m.ObjectStatus with tooltip

Steps to reproduce the problem:

  1. Create a new object status Object in a toolbar view
  2. The tooltip property should be in the constructor object
  3. In the browser, hover on top of the created object status

What is the expected result? A tooltip should be displayed with the text provided during the creation of the object status Object

What happens instead? Nothing is being displayed

Code example:

return new Toolbar({
          content: [
            vBox,
            new ObjectStatus({
              text: "Sample text",
              state: "Information",
              tooltip: "Tooltip text"
            }
          ]
        })

Generates the following XML

<div id="__status16" data-sap-ui="__status16" data-sap-ui-render="" class="sapMObjStatus sapMObjStatusInformation sapMBarChild">
<span id="__status16-text" dir="ltr" class="sapMObjStatusText">Sample text</span>
<span id="__status16-tooltip" class="sapUiPseudoInvisibleText">Tooltip text</span>
<span id="__status16-state-text" class="sapUiPseudoInvisibleText">Informative entry</span>
</div>

This issue happens only in the latest version of 1.120.1
When testing with version 1.120.20 the tooltip is visible correctly, the xml output is also different

<div id="__status16" data-sap-ui="__status16" data-sap-ui-render="" title="Tooltip Text" class="sapMObjStatus sapMObjStatusInformation sapMBarChild">
<span id="__status16-text" dir="ltr" class="sapMObjStatusText">Sample text</span>
</div>
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

No branches or pull requests

1 participant