Skip to content

hover: stops working when adding bg-gradient-to-r #4430

Answered by olets
MoElaSec asked this question in Help

You must be logged in to vote

You're using

bg-gradient-to-r hover:bg-gradient-to-r from-indigo-600 from-indigo-100 via-blue-800 to-gray-900

To change the background on hover, you'll need at least one of hover:from-<some color>, hover:via-<some color>, or hover:to-<some color>.

In addition your hover:bg-gradient-to-r is unnecessary (it duplicates the styles inherited from bg-gradient-to-r, and your from-indigo-600 isn't doing anything (it's overrided by by your from-indigo-100).

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@MoElaSec

Answer selected by MoElaSec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants