Skip to content

Commit

Permalink
fix: enable screen-readers to read <text> items
Browse files Browse the repository at this point in the history
- set svg role to 'graphics-document'

fix #275
  • Loading branch information
davidgohel committed Feb 24, 2024
1 parent 1cbc8eb commit efefdae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: ggiraph
Type: Package
Title: Make 'ggplot2' Graphics Interactive
Description: Create interactive 'ggplot2' graphics using 'htmlwidgets'.
Version: 0.8.9.005
Version: 0.8.9.006
Authors@R: c(
person("David", "Gohel", role = c("aut", "cre"),
email = "david.gohel@ardata.fr"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

- When `bg` is set to 'transparent', it's been transformed to almost
transparent '#ffffff01'.

- Enable screen-readers to read <text> items - set svg role to 'graphics-document'

# ggiraph 0.8.8

Expand Down
2 changes: 1 addition & 1 deletion src/dsvg_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ SVGElement* DSVG_dev::svg_root() {
set_attr(root, "xmlns:xlink", "http://www.w3.org/1999/xlink");
}
set_attr(root, "class", "ggiraph-svg");
set_attr(root, "role", "img");
set_attr(root, "role", "graphics-document");

std::string id;

Expand Down

0 comments on commit efefdae

Please sign in to comment.