Skip to content

Commit

Permalink
feat: Improve accessibility score
Browse files Browse the repository at this point in the history
  • Loading branch information
romshark committed Nov 20, 2024
1 parent 23d49d3 commit cec0047
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions server/template/template.templ
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,27 @@ templ viewIndex(
<sl-button
slot="trigger"
outline
circle
pill
@click="$refs.formDrawer.show()"
aria-controls="form-drawer"
>
<sl-icon name="plus-circle"></sl-icon>
New Order
<sl-icon slot="prefix" name="plus-circle"></sl-icon>
</sl-button>
}
</div>
<div class="flex flex-row items-center gap-2">
// Right
@skeleton("1rem", "1rem") {
<sl-dropdown
id="profile-dropdown"
x-ref="avatarMenu"
placement="bottom"
distance="8"
>
<sl-button slot="trigger" outline circle>
<sl-icon name="person-circle"></sl-icon>
<sl-button slot="trigger" outline pill>
Profile
<sl-icon slot="prefix" name="person-circle"></sl-icon>
</sl-button>
<div
class="
Expand Down Expand Up @@ -146,6 +150,7 @@ templ viewIndex(
<div class="md:container md:mx-auto ml-4 mr-4 pb-16">
@hideUntilLoaded() {
<sl-drawer
id="form-drawer"
x-ref="formDrawer"
label="Add a new order"
label="Drawer"
Expand Down Expand Up @@ -472,6 +477,7 @@ templ componentOrderForm(
hx-post="/orders/"
hx-swap="innerHTML"
hx-target="#viewport"
aria-label="Order submission form"
>
Add
<sl-icon slot="prefix" name="file-earmark-plus"></sl-icon>
Expand Down

0 comments on commit cec0047

Please sign in to comment.