Prevent SVG-based UI controls from triggering text selection or
long-press selection gestures on touch devices.
Changes
Make the shared UIIcon container non-selectable.
Keep regular text content selectable.
Add focused UIIcon test coverage.
Implementation
The fix is applied centrally in UIIcon.vue so all existing SVG
icon usages receive the same behavior without duplicating CSS across
individual controls.
# Prevent text selection on SVG controls
## Summary
Prevent SVG-based UI controls from triggering text selection or
long-press selection gestures on touch devices.
## Changes
- Make the shared `UIIcon` container non-selectable.
- Keep regular text content selectable.
- Add focused UIIcon test coverage.
## Implementation
The fix is applied centrally in `UIIcon.vue` so all existing SVG
icon usages receive the same behavior without duplicating CSS across
individual controls.
## Related issues
Closes: #181
jakob.gregory
added this to the 0.2.0 milestone 2026-09-11 18:51:25 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Prevent text selection on SVG controls
Summary
Prevent SVG-based UI controls from triggering text selection or
long-press selection gestures on touch devices.
Changes
UIIconcontainer non-selectable.Implementation
The fix is applied centrally in
UIIcon.vueso all existing SVGicon usages receive the same behavior without duplicating CSS across
individual controls.
Related issues
Closes: #181
Prevent text selection on SVG controlsto Fix: prevent text selection on SVG controlsI tested it and your fix works! 🥳 i think you solved it very good.
Thank you for this contribution!