obsidian-iconize
obsidian-iconize copied to clipboard
Ability to set an icon's aria-label / tooltip
Is your feature request related to a problem? Please describe.
For context, I'm creating buttons for actions within my notes, using Lucide icons. They look great.
An example:
[:LiTableProperties:](obsidian://...)
When hovering over the icon, however, it shows the name of the icon "LiTableProperties" which is set in the cm-iconize-icon span's aria-label. This isn't particularly helpful in conveying what clicking on the icon will do when clicked.
Describe the solution you'd like
The ability to add aria-labels to icons would be great.
The same example, with possible notation:
[:LiTableProperties "Toggle properties":](obsidian://...)
...would set the aria-label in the cm-iconize-icon span to "Toggle properties", and thus hovering over the icon it would now display a more helpful "Toggle properties".
I've sort of taken inspiration for the notation from what John Gruber had suggested here and is in CommonMark (which Obsidian does not natively support from what I can tell... otherwise I could maybe use that).
Additional context
Current state:
Desired outcome:
FYI the markdown for this toolbar is generated by my plugin, with thanks to your plugin for the icon support!