1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-18 16:05:33 -04:00

fix font css vars

This commit is contained in:
2025-04-10 20:23:34 -04:00
parent a63098b150
commit eb84ec37ee
13 changed files with 71 additions and 82 deletions

View File

@@ -0,0 +1,29 @@
/*
* Pulled from @reach/skip-nav: https://github.com/reach/reach-ui/blob/main/packages/skip-nav/styles.css
*/
.hidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
position: absolute;
}
.hidden:focus {
padding: 1rem;
position: fixed;
top: 10px;
left: 10px;
z-index: 99999;
width: auto;
height: auto;
clip: auto;
background: var(--colors-super-duper-light);
color: var(--colors-link);
border: 2px solid var(--colors-kinda-light);
text-decoration: underline;
}

View File

@@ -0,0 +1,17 @@
import styles from "./SkipNav.module.css";
const skipNavId = "skip-nav";
export const SkipNavLink = () => {
return (
<a href={`#${skipNavId}`} tabIndex={0} className={styles.hidden}>
Skip to content
</a>
);
};
export const SkipNavTarget = () => {
return <div id={skipNavId} />;
};
export default SkipNavLink;

View File

@@ -0,0 +1,2 @@
export * from "./SkipNav";
export { default } from "./SkipNav";