Skip to content

Commit f20313a

Browse files
committed
Enable passing skip-to aria-label
1 parent 6a65166 commit f20313a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

demo/skip-to-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<vue-skip-to-list
2222
:to="[
2323
{anchor: '#main', label: 'Main'},
24-
{anchor: '#footer', label: 'Footer'},
24+
{anchor: '#footer', label: 'Footer', ariaLabel: 'Skip to about'},
2525
]"
2626
data-vst="skip-to-list"
2727
>

src/skip-to-list.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
>
1616
<vue-skip-to
1717
:to="el.anchor"
18+
:ariaLabel="el.ariaLabel"
1819
@focus="labelVisible = true"
1920
@blur="labelVisible = false"
2021
class="vue-skip-to vue-skip-to--relative"

0 commit comments

Comments
 (0)