vuejs/theme

Search shortcut for Windows is broken

kiaking opened this issue · 4 comments

Need to fix this one. The CTRL icon(?) is not looking fantastic.

Screen Shot 2021-11-24 at 22 04 36

image

Seems it's normal now and the shortcut works on my Windows laptop.

@kiaking would you mind a double-check? :-)

Update: I found when you activate the search bar once, the "ctrl" will be changed from a text (my screenshot) into a SVG icon (@kiaking 's screenshot), which looks a little bit smaller. Same to the "meta" on macOS. I feel it's a feature, not a bug.

Might wanna backport this: vuejs/vitepress#986

I found another difference is @vue/theme uses <span>s rather than <kbd>s to render the keys. As a result, it shows different styles before and after the actual search box is loaded.

PR created. #71

Closing as it seems to have been fixed