Skip to content

Commit

Permalink
fix(a11y): add role to map container div (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabimartini authored Jun 28, 2024
1 parent 42a1d61 commit 499d082
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/my-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@ export class MyMap extends LitElement {
<div
id="${this.id}"
class="map"
role="${this.staticMode && !this.collapseAttributions
? "presentation"
: "application"}"
tabindex="${this.staticMode && !this.collapseAttributions ? -1 : 0}"
/>`;
}
Expand Down

0 comments on commit 499d082

Please sign in to comment.