Skip to content

Commit 205aafe

Browse files
authored
feat(plugin-search): improve a11y support (#165)
1 parent c668fef commit 205aafe

File tree

1 file changed

+3
-1
lines changed
  • packages/@vuepress/plugin-search/src/client/components

1 file changed

+3
-1
lines changed

packages/@vuepress/plugin-search/src/client/components/SearchBox.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,15 @@ export const SearchBox = defineComponent({
9494

9595
return () =>
9696
h(
97-
'div',
97+
'form',
9898
{
9999
class: 'search-box',
100+
role: 'search',
100101
},
101102
[
102103
h('input', {
103104
ref: input,
105+
type: 'search',
104106
placeholder: locale.value.placeholder,
105107
autocomplete: 'off',
106108
spellcheck: false,

0 commit comments

Comments
 (0)