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

[docs] How to change the alpha value of the color of a text/outlined button or of an icon on hover? #45098

Closed
koroman17 opened this issue Jan 23, 2025 · 2 comments
Assignees
Labels
customization: theme Centered around the theming features support: docs-feedback Feedback from documentation page support: question Community support but can be turned into an improvement

Comments

@koroman17
Copy link

koroman17 commented Jan 23, 2025

Related page

https://mui.com/material-ui/customization/theming/

Kind of issue

Missing information

Issue description

As I observe the alpha value of the color of a text/outlined button or of an icon on hover is 0.04. I want to change this value in createTheme, but couldn't find anywhere to change

Context

No response

Search keywords: alpha value

@koroman17 koroman17 added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Jan 23, 2025
@aarongarciah aarongarciah added the customization: theme Centered around the theming features label Jan 23, 2025
@siriwatknp
Copy link
Member

siriwatknp commented Jan 27, 2025

It's the theme.palette.action.hoverOpacity. You can customize it like this:

createTheme({
  palette: {
    action: {
      hoverOpacity: 0.08, // this will impact all components that use this token
    }
  }
})

For the full structure of the theme, check this out.

@siriwatknp siriwatknp added support: question Community support but can be turned into an improvement and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 27, 2025
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@koroman17 How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customization: theme Centered around the theming features support: docs-feedback Feedback from documentation page support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

3 participants