Andrew
2024-08-10 3b5ed813f5853b13711fb92f86648cb85e8d8f18
refs
author Andrew <80933354+ndrooo@users.noreply.github.com>
Saturday, August 10, 2024 01:46 +0000
committer GitHub <noreply@github.com>
Saturday, August 10, 2024 01:46 +0000
commit3b5ed813f5853b13711fb92f86648cb85e8d8f18
tree 887d28ae0dc8f837b30968fa6ac098501ab3a696 tree | zip | gz
parent 195fc5134c41ea75161cab9af9ef135074754db5 view | diff
feat(search): keyboard-accessible search button (#1331)

* Use a `<button>` for search

* Fix search button styles to match preexisting styling

* Remove additional native button properties.

* Invoke search button on click or keyboard.

* Reorganize search button DOM hierarchy

* Restore focus to the search button when exiting the search overlay

* Run prettier on Search.tsx
4 files modified
38 ■■■■ changed files
quartz/components/Search.tsx 16 ●●●● diff | view | raw | blame | history
quartz/components/scripts/search.inline.ts 8 ●●●●● diff | view | raw | blame | history
quartz/components/scripts/util.ts 1 ●●●● diff | view | raw | blame | history
quartz/components/styles/search.scss 13 ●●●●● diff | view | raw | blame | history