Skip to content

[Tooltip] How to customize the tooltip? #11467

@samueldepooter

Description

@samueldepooter
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Turn Tooltip into styled component
-> use classes attribute to override tooltip class
-> styles should be applied to the element

Current Behavior

I can see that my new tooltip class is on the element itself but without styles.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/yj7wjr753z

  1. Render Tooltip
  2. Implement styled components
  3. Override a specific class with the classes attribute
  4. Apply styling to the specified class

Your Environment

Tech Version
Material-UI latest
React latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: tooltipChanges related to the tooltip.support: questionCommunity support but can be turned into an improvement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions