ramnathv / htmlwidgets

HTML Widgets for R
http://htmlwidgets.org
Other
792 stars 205 forks source link

[Accessibility] Provide default alt value for `plotTag()` #439

Closed jooyoungseo closed 2 years ago

jooyoungseo commented 2 years ago

plotTag() has alt param for accessibility, which is great; however, it does not provide default value.

Please provide default value as "Plot object" so that any NULL-alt plots can be also recognized by screen readers.

If possible, please add a condition to check whether current graph is ggplot2 object having alt attribute so that g$labels$alt can be passed to alt param when available.

jooyoungseo commented 2 years ago

Oops, it should be reported in htmltools.