Closed mbdoch closed 6 years ago
@mbriantoc that should do it, but this code snippet doesn't give me much context around what's happening in your app. I can give you two things to try in those browsers:
Open your browser's developer tools so you can inspect the markup as you interact with the page.
<html lang="en" data-whatinput="initial" data-whatintent="initial">
when the page loads?data-whatintent
attribute change to mouse
when you move your mouse? Does data-whatinput
change when you click somewhere on the page (don't click on a link or button that would cause a page reload).Let me know what you find!
Hi @ten1seven
Thanks for the hints!
I was comparing the behaviour of your demo and my app (which is an AngularJS app btw) and the only difference I found is that, in my app, when clicking on any element, the data-whatclasses attribute appears with the value of the element's classes.
Is that expected?
Correct! data-whatclasses
displays the classes of the focused (or clicked) element so that you can do very specific styling if desired, like:
[data-whatintent="mouse"][data-whatclasses*="my-class"] .parent-of-my-class {
/* special styling because I know that .my-class was interacted with */
}
Hi @ten1seven
I found out we have a mixin dealing with the style when focus is on the links in the navigation. That's why it didn't work for the elements.
The lib works just fine! Thanks a lot :)
Great to hear!
Hello!
The following css has different effects in different browsers:
Have I missed any step to make it work in all of them? Thanks!