SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.47k stars 254 forks source link

Button: #7574

Open Anna-Lena1998 opened 9 months ago

Anna-Lena1998 commented 9 months ago

Bug Description

If a button with an icon and no text is created, for specific icons a tooltip is shown. The tooltip is inherited from the icon.

Affected Component

Button

Expected Behaviour

The expected behavior is that the tooltip shall be disabled by a corresponding property. In my use case, I am using an different tooltip component, which shall replace the tooltip of the icon.

Isolated Example

https://codesandbox.io/s/ui5-webcomponents-forked-64l3wm?file=/index.html

Steps to Reproduce

  1. Hover over the icon of the button.
  2. The tooltip of the icon will be shown.

Log Output, Stack Trace or Screenshots

https://github.com/SAP/ui5-webcomponents/assets/55435732/6957b4bd-1dff-4e53-a272-a52d3b951499

Priority

None

UI5 Web Components Version

1.18.0

Browser

Chrome

Operating System

Mac OS

Additional Context

No response

Organization

ui5 webcomponents for react

Declaration

NHristov-sap commented 9 months ago

Hello @ui5-webcomponents-topic-b,

Please check if this request is valid and can be implemented.

Best Regards, Nikolay Hristov

unazko commented 4 months ago

Hello @Anna-Lena1998,

Currently there is a workaround to not show the default icon tooltip and that will be to set the tooltip property to empty space (" ").

We'll have to discuss a possible change in the default value for the tooltip property, which will make the desired behavior easily achievable.

Best regards, Boyan