Closed hugolpz closed 3 weeks ago
Distinct References
There is one thing I forgot to mention. The wikimedia API icons only worked on Wikipedia and similar sites(other wikimedia tools most likely) which also relied on these icons. Since they were a part of website/DOM(Website Devtools-> Applications-> CSS), they were being rendered by default. This didn't happen in other sites. So I guess this shouldn't even have been the choice to begin with.
Centralized References
While they can certainly work, they need additional code for change in opacity when surfing through the carousel of videos.
Unicode References
This was a new approach to me and it is something that works across both content and popup scripts, hence consistent. It also doesn't need any opacity change as it adapts to the OOjs UI library's CSS, unlike the icons in centralized references. I'm going forward with this approach. Kindly review and test the PR before merging it.
Check https://doc.wikimedia.org/codex/latest/icons/all-icons.html > search : cdxIconPrevious
and cdxIconNext
> Observe svg.
Do we need to change icons again ? If yes , then correct me if I am wrong.
importScripts
or import
statements in our content scripts or popup. importScripts
inside our sw.js
, but I'm not sure whether the module would support it.Can't think of any other alternative as of now.
@kabir-afk hello, I gather all resources on this topic here. It's food for though and discussion. Still, current unicode approach you implemented is fine as of today.
Problem
Distinct references
Centralized references
Unicode characters
We may use unicode characters đ˘ đ˘ đ˘ đ˘ , đ˘ đ˘ đ˘ đ˘ , â â , ⎚