Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Artifact used: androidx.appcompat:appcompat
Version used: 1.5.1
Theme used: Theme.Material3.DayNight
Devices/Android versions reproduced on: Android 8+
For API lower than 26 we can change the style of tooltips by setting the following attributes in our theme:
However on API 26 and newer we are unable to change the default look of this component, because you don't want to add a backport for TooltipCompat.setTooltipText() ( https://issuetracker.google.com/issues/240060685 ).
Therefore how can we change the default styling of the Tooltip?
It should be available according to your Material style guidelines:https://m2.material.io/components/tooltips#theming