Closed
Description
The search plugin would benefit from two minor updates:
- Swap the close button
<svg>
for one that is properly sized to avoid sizing via CSStransform
.
-
Use a
<button>
element for the close button to allow the element to receive focus. Another option is to addtabindex="0"
to the clear buttondiv
, but abutton
tag is the correct tag for this scenario. The<button>
tag should also contain an aria-label for screen readers since it does not contain a text label:<button class="clear-button show" aria-label="Clear search">...</button>
These two changes have been integrated into docsify-themeable via a plugin. It is preferable to have these changes integrated directly into docsify.