Skip to content

Disable hover effect #7298

Closed Answered by yunchengyang515
Faetu asked this question in Q&A
Discussion options

You must be logged in to vote

You can use styles api and css variable to make the hover background colour the same as button background colour

function Demo() {
  return (
    <Button
      styles={{
        root: {
          '--button-hover': 'var(--mantine-color-blue-filled)',
        },
      }}
    >
      Disabled Hover
    </Button>
  );
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Faetu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants