Skip to content

Add accessible iframe titles and document language - #250

Open
29-5-RafayKhattak wants to merge 1 commit into
python-visualization:mainfrom
29-5-RafayKhattak:rk/accessible-iframes
Open

29-5-RafayKhattak wants to merge 1 commit into
python-visualization:mainfrom
29-5-RafayKhattak:rk/accessible-iframes

Conversation

@29-5-RafayKhattak

Copy link
Copy Markdown

What changed

  • use a Figure title as the accessible name of its notebook iframe
  • add an optional title argument to IFrame
  • escape iframe title attributes before rendering
  • add a configurable lang attribute to generated Figure documents, defaulting to en
  • add regression tests for the rendered accessibility attributes

This lets Folium users write map.get_root().title = "Map description" and get both a document title and an accessible iframe name.

Closes #213.

Tests

  • pytest tests/test_accessibility.py (2 passed)
  • non-browser suite excluding the existing slow test_color_brewer_extendability test (34 passed)
  • flake8
  • black --check
  • isort --check-only
  • codespell
  • mypy branca

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessibility issue - possible to enable adding HTML attributes to rendered iframe elements?

1 participant