File tree Expand file tree Collapse file tree 8 files changed +2591
-2560
lines changed Expand file tree Collapse file tree 8 files changed +2591
-2560
lines changed Original file line number Diff line number Diff line change 11<template >
2- <div id =" toast" class =" fixed right-[20px] top-24 z-2 " >
2+ <div id =" toast" class =" fixed right-[20px] top-24 z-11 " >
33 <div
44 class ="
55 absolute
Original file line number Diff line number Diff line change 1+ <template >
2+ <button
3+ class =" fixed p-4 text-gray-800 bg-gray-300 border border-gray-500 rounded-md w-52 z-11 top-6 left-6 dark:bg-gray-700 dark:text-gray-50"
4+ @click =" focusOnMain"
5+ >
6+ Skip to main content
7+ </button >
8+ </template >
9+ <script >
10+ export default {
11+ methods: {
12+ focusOnMain () {
13+ document .getElementsByTagName (' main' )[0 ].focus ()
14+ },
15+ },
16+ }
17+ </script >
18+
19+ <style scoped lang="scss">
20+ button {
21+ opacity : 0 ;
22+ pointer-events : none ;
23+ }
24+ button :focus {
25+ opacity : 1 ;
26+ pointer-events : all ;
27+ }
28+ </style >
Original file line number Diff line number Diff line change 11<template >
22 <div class =" page-root" >
3+ <SkipToNavButton />
34 <Toast />
45 <Nuxt />
56 <Footer />
Original file line number Diff line number Diff line change 4848 </button >
4949 </template >
5050 </Navbar >
51- <main >
51+ <main class = " outline-none " tabindex = " 0 " >
5252 <div
5353 class =" flex items-stretch w-full gap-4 font-mono text-gray-800 dark:text-gray-50"
5454 >
Original file line number Diff line number Diff line change 11<template >
22 <div class =" page-contents" >
33 <Navbar />
4- <main class =" text-gray-800 dark:text-gray-50" >
4+ <main class =" text-gray-800 outline-none dark:text-gray-50" tabindex = " 0 " >
55 <section >
66 <header >
77 <h1 class =" w-full mb-2 text-xl text-center" >
Original file line number Diff line number Diff line change 11<template >
22 <div class =" page-contents" >
33 <Navbar :show-back-button =" true" />
4- <main >
4+ <main class = " outline-none " tabindex = " 0 " >
55 <section
66 class ="
77 flex
1818 bg-opacity-50
1919 backdrop-blur-sm
2020 rounded-md
21- shadow-sm
21+ shadow-lg
22+ border border-gray-500
2223 w-full
2324 z-10
2425 "
3031 >
3132 <label
3233 for =" toggleScrollInSync"
33- class =" text-gray-800 select-none dark:text-gray-50"
34+ class =" text-sm text- gray-800 select-none dark:text-gray-50"
3435 >
3536 Scroll in sync
3637 </label >
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ module.exports = {
1616 zIndex : {
1717 '1' : 1 ,
1818 '2' : 2 ,
19- '10' : 10
19+ '10' : 10 ,
20+ '11' : 11
2021 } ,
2122 minHeight : {
2223 '80' : '20rem'
You can’t perform that action at this time.
0 commit comments