why is content attr(data-content) not working in my codepen?
it's on line 97 in css file. https://codepen.io/Abdimajid_Shire/pen/vYzOvMV
5 Replies
you're selecting the last span, so
attr
is accessing data-notification
on that span, not on the wrapping .magic-text
which is where the attribute lives
I really like the hover effect, it's excellent for this style of menuthank you so much
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
not sure what you mean?
data attributes have nothing to do with accessibility because they're by definition developer-defined