vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

Route Announcer for Vitepress ๐Ÿ“ข

Open sanjaiyan-dev opened this issue 2 years ago โ€ข 1 comments

Adding Route Announcer to Vitepress js for better accessibility. Inspired by https://nextjs.org/docs/accessibility#route-announcements.

Extremely sorry still there are some work(adding to the Vitepress defaultly) to do please anyone help.me with it to integrate it.

sanjaiyan-dev avatar Sep 17 '22 23:09 sanjaiyan-dev

Code brief explanation -:

  1. Used watchPostEffect because need to update the route announcer after DOM updates.

  2. Used shallowRef for little improved performance.

Sorry if I made any mistakes ยก

sanjaiyan-dev avatar Sep 18 '22 00:09 sanjaiyan-dev

Seems like we have this via ngprogress ๐Ÿ™Œ Thank you so much for the PR though ๐Ÿš€

kiaking avatar Oct 20 '22 10:10 kiaking