Hi folks,
I really have no idea why this simple hover state isn’t working in my app, but neither the color nor cursor type change on hover.
The code I have is simply:
i {
padding: 0 15px 0 0; // this works
&:hover{
color: yellow; // this don't
cursor: pointer; // this don't
}
}
which is wrapped within the tool bar style like:
#toolbar {
display: flex;
align-items: center;
position:fixed;
grid-area: toolbar;
width: 100vw;
Padding: 5px 0 5px 20px;
i {
padding: 0 15px 0 0; // this works
&:hover{
color: yellow; // this don't
cursor: pointer; // this don't
}
}
div {
padding-right: 15px;
color: grey;
}
}
What’s even more odd is that the padding defined immediately before &:hover
is working, so what on earth could be causing this to not work.
I’ve pulled the code out into a separate pen and it works fine, but no matter what I try I can not get it to work in my app.
I really would appreciate anyone who can help me with this. I’ve spent a couple of days changing my code, but nothing seems to work.
Here’s a link to the broken pen
And here’s a link to the same code working outside of the app:
Working code
Thanks in advance for taking the time to look at this.