You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to still allow selecting text when using stretched links? (the text covered by the stretched-link)
instead of a stretched link, if we actually wrap content in a <a>, and add CSS rule user-select: text and draggable="false" on the element, then it works, text is selectable, but such a trick doesn't work with stretched-links ::after pseudo element
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to still allow selecting text when using stretched links? (the text covered by the stretched-link)
instead of a stretched link, if we actually wrap content in a
<a>
, and add CSS ruleuser-select: text
anddraggable="false"
on the element, then it works, text is selectable, but such a trick doesn't work with stretched-links ::after pseudo elementAny idea?
Demo: https://jsfiddle.net/caub/hb7do4w3/
Beta Was this translation helpful? Give feedback.
All reactions