File tree 1 file changed +14
-3
lines changed
src/client/theme-default/components
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -440,10 +440,20 @@ function formMarkRegex(terms: Set<string>) {
440
440
<input
441
441
ref =" searchInput"
442
442
v-model =" filterText"
443
- :placeholder =" buttonText"
444
- id =" localsearch-input"
443
+ :aria-activedescendant =" selectedIndex > -1 ? ('localsearch-item-' + selectedIndex) : undefined"
444
+ aria-autocomplete =" both"
445
+ :aria-controls =" results?.length ? 'localsearch-list' : undefined"
445
446
aria-labelledby =" localsearch-label"
447
+ autocapitalize =" off"
448
+ autocomplete =" off"
449
+ autocorrect =" off"
446
450
class =" search-input"
451
+ id =" localsearch-input"
452
+ enterkeyhint =" go"
453
+ maxlength =" 64"
454
+ :placeholder =" buttonText"
455
+ spellcheck =" false"
456
+ type =" search"
447
457
/>
448
458
<div class =" search-actions" >
449
459
<button
@@ -482,8 +492,9 @@ function formMarkRegex(terms: Set<string>) {
482
492
<li
483
493
v-for =" (p, index) in results"
484
494
:key =" p.id"
485
- role = " option "
495
+ :id = " 'localsearch-item-' + index "
486
496
:aria-selected =" selectedIndex === index ? 'true' : 'false'"
497
+ role =" option"
487
498
>
488
499
<a
489
500
:href =" p.id"
You can’t perform that action at this time.
0 commit comments