python-visualization / python-visualization/branca

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

Open
#213 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
134
Forks
69
Avg merge
1h 10m
Merged PRs (30d)
1

Description

A WCAG 2.1 AA audit of visualizations generated with folium/branca shows that the resulting iframe is missing a title attribute. Is it possible to enable adding a title attribute to the iframe–perhaps via folium.Map.get_root()? Thank you!

Steps to reproduce:

  1. Download the axe DevTools Chrome extension
  2. Visit a page with an embedded folium map
  3. Open the Chrome Developer Tools panel
  4. Click through to the axe DevTools tab
  5. Run the free Full Page Scan
  6. See the "Frames must have an accessible name" warning - https://dequeuniversity.com/rules/axe/3.1/frame-title?application=axeAPI

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the rendered iframe path referenced through folium.Map.get_root() and inspect how the HTML element is generated. Reproduce the axe DevTools "Frames must have an accessible name" warning, then verify that the rendered iframe includes a title attribute and no longer triggers that warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, python
Domain
accessibility
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.