You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
...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!
The text was updated successfully, but these errors were encountered:
chrisgurney
changed the title
Ability to set an icon's title/tooltip
Ability to set an icon's aria-label / tooltip
Oct 2, 2024
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:
When hovering over the icon, however, it shows the name of the icon "LiTableProperties" which is set in the
cm-iconize-icon
span'saria-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:
...would set the
aria-label
in thecm-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!
The text was updated successfully, but these errors were encountered: