Enhance Show Slur Metadata Feature #625
Labels
enhancement
New feature or request
level:feature
An issue that describes a feature (initiative>feature>ticket)
plugin
priority:high
role:frontend
In the current implementation of the show slur metadata feature, we are inserting a
svg icon
next to a slur and when a user hovers over it, some metadata is displayed.The Issue
Since we are inserting the icon in a span tag (for the icon) after the slur word, this is breaking the formatting and structure of text on many websites like Reddit, Instagram, etc.
Proposed Solution
Instead of having the
svg icon
we can fill the slur world with a feather blur, and when user hovers over it, metadata should be shown.@dennyabrain has created a demo image of how the feature should look here - #607 (comment)
Code Changes
plugin/src/transform-general.js
- herelocateSlur()
function identifies all the slur words in the page and inserts the icon in a span tag next to the word.addMetaData()
function helps show the metadata when we hover over it.Code changes would mostly be required in these two functions only.
The text was updated successfully, but these errors were encountered: