|Open||Sgs||T296646 [Epic] Migration of front-end modules to Vue.js components|
|In Progress||None||T297763 Migration of Mentor dashboard modules to Vue|
|Resolved||Sgs||T300532 Migration of mentee overview to Vue|
|Open||None||T311396 Find replacement for the mentee overview table sort icons|
It seems to me that it would be good to replace this icon in regular sortable tables as well. We have cdxIconDownTriangle and cdxIconUpTriangle, and just need to create cdxIconDownTriangle + cdxIconUpTriangle icon.
It doesn't sound like you're proposing altering either the Codex or OOUI libraries (https://doc.wikimedia.org/codex/main/icons/all-icons.html and https://doc.wikimedia.org/oojs-ui/master/demos/?page=icons show these), so untagging them.
Apologies if the writing is not correct. I'm exactly proposing to add an icon for this in Codex. At the time of writing the issue I could not find docs for adding a new icon to Codex, I see now there's a guide for it. I think we could use IconDown + IconUp to create the icon as @Iniquity is suggesting.
I explored the available options and I think creating an svg file that contains both triangles makes sense to simplify the logic for the display of the three typical sorting states (ascending, descending, neutral).
- Vue component holding both triangles (gerrit 829854 )
- New svg file with both triangles ( gerrit 829855 ). The SVG lives in a JS file which exports a string literal because I don't know if it is ok to use a custom SVG file with the CdxIcon component. afaik loading an SVG file is not possible in JS file unless some build mechanism is applied.
Has this icon enough general purpose to be added to Codex? What do you think @Jdforrester-WMF ?