Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dist/samples/3d-accessibility-features/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@ async function initMap() {
scale: 1.5,
glyphColor: "#FFFFFF"
});
const popover = new PopoverElement({
open: true,
});
const popover = new PopoverElement();

const content = `${i + 1}. ${title}`;
const header = document.createElement('span');
// Include the label for screen readers.
header.ariaLabel = `This is marker ${i + 1}. ${title}`;
header.slot = 'header';

popover.append(header);
popover.append(header);
popover.append(content);

const interactiveMarker = new Marker3DInteractiveElement({
// Include a title, used for accessibility text for use by screen readers.
title,
position,
gmpPopoverTargetElement: popover
});
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/samples/3d-accessibility-features/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<head>
<title>Map</title>

<script type="module" crossorigin src="./assets/index-DIKgGMZR.js"></script>
<script type="module" crossorigin src="./assets/index-CDjT9Ul7.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DDwKyjRS.css">
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions dist/samples/3d-accessibility-features/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ async function initMap() {
scale: 1.5,
glyphColor: "#FFFFFF"
});
const popover = new PopoverElement({
open: true,
});
const popover = new PopoverElement();
const content = `${i + 1}. ${title}`;
const header = document.createElement('span');
// Include the label for screen readers.
Expand All @@ -55,6 +53,8 @@ async function initMap() {
popover.append(header);
popover.append(content);
const interactiveMarker = new Marker3DInteractiveElement({
// Include a title, used for accessibility text for use by screen readers.
title,
position,
gmpPopoverTargetElement: popover
});
Expand Down
8 changes: 4 additions & 4 deletions dist/samples/3d-accessibility-features/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@ async function initMap() {
scale: 1.5,
glyphColor: "#FFFFFF"
});
const popover = new PopoverElement({
open: true,
});
const popover = new PopoverElement();

const content = `${i + 1}. ${title}`;
const header = document.createElement('span');
// Include the label for screen readers.
header.ariaLabel = `This is marker ${i + 1}. ${title}`;
header.slot = 'header';

popover.append(header);
popover.append(header);
popover.append(content);

const interactiveMarker = new Marker3DInteractiveElement({
// Include a title, used for accessibility text for use by screen readers.
title,
position,
gmpPopoverTargetElement: popover
});
Expand Down
6 changes: 3 additions & 3 deletions dist/samples/3d-accessibility-features/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ async function initMap() {
scale: 1.5,
glyphColor: "#FFFFFF"
});
const popover = new PopoverElement({
open: true,
});
const popover = new PopoverElement();
const content = `${i + 1}. ${title}`;
const header = document.createElement('span');
// Include the label for screen readers.
Expand All @@ -55,6 +53,8 @@ async function initMap() {
popover.append(header);
popover.append(content);
const interactiveMarker = new Marker3DInteractiveElement({
// Include a title, used for accessibility text for use by screen readers.
title,
position,
gmpPopoverTargetElement: popover
});
Expand Down