File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
packages/site-kit/src/lib Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 7272 }
7373
7474 li {
75+ position : relative ;
7576 display : block ;
7677 margin : 0 ;
7778 margin-bottom : 4rem ;
79+ padding-right : 0.5rem ; /* leave space for focus ring */
7880 }
7981
8082 li :last-child {
125127 overflow-y : auto ;
126128 }
127129
128- :global(.scrollbars-invisible ) [aria-current = ' page' ]::after {
130+ :global(.scrollbars-invisible ) li :has ( > [aria-current = ' page' ]) ::after {
129131 --size : 1.8rem ;
130132 content : ' ' ;
131133 position : absolute ;
132134 width : var (--size );
133135 height : var (--size );
134136 top : calc (1.4rem - var (--size ) * 0.5 );
135- right : calc (-0.5 * var (--size ));
137+ right : calc (-0.5 rem - 0. 5 * var (--size ));
136138 background-color : var (--sk-bg-1 );
137139 z-index : 2 ;
138140 position : absolute ;
Original file line number Diff line number Diff line change @@ -857,9 +857,15 @@ async function syntax_highlight({
857857 html = replace_blank_lines ( highlighted ) ;
858858 }
859859
860- // munge shiki output: put whitespace outside `<span>` elements, so that
861- // highlight delimiters fall outside tokens
862- html = html . replace ( / ( < s p a n [ ^ > ] + ?> ) ( \s + ) / g, '$2$1' ) . replace ( / ( \s + ) ( < \/ s p a n > ) / g, '$2$1' ) ;
860+ // munge shiki output
861+ html = html
862+ // put whitespace outside `<span>` elements, so that
863+ // highlight delimiters fall outside tokens
864+ . replace ( / ( < s p a n [ ^ > ] + ?> ) ( \s + ) / g, '$2$1' )
865+ . replace ( / ( \s + ) ( < \/ s p a n > ) / g, '$2$1' )
866+
867+ // remove tabindex
868+ . replace ( ' tabindex="0"' , '' ) ;
863869
864870 html = html
865871 . replace ( / { 13 } ( [ ^ ] [ ^ ] + ?) { 13 } / g, ( _ , content ) => {
You can’t perform that action at this time.
0 commit comments