Skip to content

Commit ecab140

Browse files
committed
Add sr-only text to read more links. OWC-92, OWC-95
1 parent e086994 commit ecab140

6 files changed

Lines changed: 18 additions & 5 deletions

File tree

build/blocks/owc-openkaarten/streetmap/client.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/blocks/owc-openkaarten/streetmap/client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/blocks/owc-openkaarten/streetmap/client.js": "/blocks/owc-openkaarten/streetmap/client.js?id=27274f7322b6ebce3dcef6dde1bec7e5",
2+
"/blocks/owc-openkaarten/streetmap/client.js": "/blocks/owc-openkaarten/streetmap/client.js?id=7a35ddc22ecd2afb0e29c5bc1867f468",
33
"/blocks/owc-openkaarten/streetmap/style.css": "/blocks/owc-openkaarten/streetmap/style.css?id=0c70cc29722d11466724176fc03cdd58",
44
"/blocks/owc-openkaarten/streetmap/editor.css": "/blocks/owc-openkaarten/streetmap/editor.css?id=f4316f0723fb86e3b028a9b448b1f3ae"
55
}

src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/App.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const initializeSelectedDatasets = () => {
4848
// Add datasetChange handler
4949
const handleDatasetChange = (id, checked) => {
5050
if (!id) return null;
51-
51+
5252
if (checked) {
5353
const dataLayers = selectedDatasets.value;
5454
dataLayers.push(id);
@@ -247,4 +247,16 @@ onMounted(() => {
247247
grid-column: 1 / span 2;
248248
}
249249
}
250+
251+
.sr-only {
252+
position: absolute;
253+
width: 1px;
254+
height: 1px;
255+
padding: 0;
256+
margin: -1px;
257+
overflow: hidden;
258+
clip: rect(0, 0, 0, 0);
259+
white-space: nowrap;
260+
border-width: 0;
261+
}
250262
</style>

src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/BaseTooltipCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ onMounted(() => {
9292
<svg aria-hidden="true" width="20" height="21" fill="none" xmlns="http://www.w3.org/2000/svg">
9393
<path d="M10.243 4.91a.833.833 0 0 1 1.178 0l5 5a.833.833 0 0 1 0 1.18l-5 5a.833.833 0 0 1-1.178-1.18l3.577-3.577H4.165a.833.833 0 0 1 0-1.667h9.655L10.243 6.09a.833.833 0 0 1 0-1.178Z" fill="#fff"/>
9494
</svg>
95-
{{ button.button_text }}
95+
{{ button.button_text }} <span class="sr-only">over {{ title }}</span>
9696
</a>
9797
</div>
9898
</div>

src/blocks/owc-openkaarten/streetmap/assets/scripts/vue/ListView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ const loadMore = () => {
155155
<path d="M10.243 4.41a.833.833 0 0 1 1.178 0l5 5a.833.833 0 0 1 0 1.18l-5 5a.833.833 0 0 1-1.178-1.18l3.577-3.577H4.165a.833.833 0 0 1 0-1.667h9.655L10.243 5.59a.833.833 0 0 1 0-1.178Z" fill="#1261A3"/>
156156
</svg>
157157
{{ location.button.button_text }}
158+
<span class="sr-only">over {{ location.title }}</span>
158159
</a>
159160
</template>
160161
</BaseListCard>

0 commit comments

Comments
 (0)