Add alt text to images & charts for improved accessibility #8563
Labels
area:accessibility
feature:charts
Related to charting functionality
feature:st.dataframe
feature:st.image
type:enhancement
Requests for feature enhancements or new features
Checklist
Summary
Add a way for developers to add alt text to commands such as
st.image
and chart objects.Why?
For accessibility reasons, images, charts, and other visualizations should always have alt text that describes the content.
How?
This should probably be a parameter that the developer can set since we can't automatically generate alt text (even though this might be a cool LLM application 😉 ). Maybe just a parameter
alt
oralt_text
oralternative_text
that accepts a string.Elements for which we could/should add this:
Note that some of these elements also have other parameters to describe the content (e.g.
st.image
has acaption
parameter), so we'd have to see how these two work together.Additional Context
No response
The text was updated successfully, but these errors were encountered: