Skip to content

Commit

Permalink
Simplify TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Sep 15, 2024
1 parent f85f1ae commit 201a392
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion site/pages/_Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const path = relative(root, file)
<div class="~lg:~gap-x-6/10 container grid grid-cols-1 lg:grid-cols-[auto_minmax(0,1fr)]">
<div class="relative w-[13rem] max-lg:hidden">
<div class="~lg:~pr-6/10 sticky top-0 -mt-10 max-h-screen overflow-y-auto py-10">
<TOC {headings} client:load />
<TOC headings={headings.filter((h) => h.slug !== 'features')} client:load />
</div>
</div>
<main>
Expand Down
34 changes: 17 additions & 17 deletions site/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,23 @@ export default {
}
```

### Fluid type accessibility checks

By default, the plugin will not generate fluid type that [would fail WCAG Success Criterion 1.4.4](https://www.smashingmagazine.com/2023/11/addressing-accessibility-concerns-fluid-type/).
You can configure this with the `checkSC144` option:

```js title="tailwind.config.js" ins={6}
// ...
export default {
// ...
plugins: [
fluid({
checkSC144: false // default: true
})
]
}
```

## Advanced

### Customize breakpoints per-utility
Expand Down Expand Up @@ -268,23 +285,6 @@ export default {
}
```

### Fluid type accessibility errors

By default, the plugin will not generate fluid type that [would fail WCAG Success Criterion 1.4.4](https://www.smashingmagazine.com/2023/11/addressing-accessibility-concerns-fluid-type/).
You can configure this with the `checkSC144` option:

```js title="tailwind.config.js" ins={6}
// ...
export default {
// ...
plugins: [
fluid({
checkSC144: false // default: true
})
]
}
```

### Combining with media queries

To really get crazy, you can combine fluid utilities with
Expand Down

0 comments on commit 201a392

Please sign in to comment.