bugfix: inexistent subheading-anchor class

This commit is contained in:
Francisco Moretti 2023-04-15 11:06:50 +01:00
parent 445d877b77
commit f1c17dfa3c
2 changed files with 2 additions and 1 deletions

View file

@ -172,7 +172,7 @@ export default makeSource({
{
behavior: "wrap",
properties: {
className: ["subheading-anchor"],
className: ["before:content-['#'] before:absolute before:invisible before:-ml-[1em] hover:before:visible before:text-slate-300 pl-[1em] -ml-[1em]"],
ariaLabel: "Link to section",
},
},

View file

@ -8,6 +8,7 @@ module.exports = {
"./components/**/*.{ts,tsx}",
"./ui/**/*.{ts,tsx}",
"./content/**/*.{md,mdx}",
"contentlayer.config.js",
],
darkMode: ["class"],
theme: {