Make links accessible
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
b51e43f431
commit
046274bda8
10 changed files with 24 additions and 23 deletions
10
src/components/tab-button.html
Normal file
10
src/components/tab-button.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<script props>
|
||||
module.exports = {
|
||||
page: props.page,
|
||||
aria_selected: Boolean(props.selected)
|
||||
}
|
||||
</script>
|
||||
<button hx-get="/partials/{{page}}" hx-push-url="/{{page}}" role="tab" aria-selected="{{aria_selected}}"
|
||||
aria-controls="tab-content">
|
||||
<yield></yield>
|
||||
</button>
|
Loading…
Add table
Add a link
Reference in a new issue