optimize for lighthouse

This commit is contained in:
Robin Olsen
2026-02-13 17:48:56 +01:00
parent a34f8cf40a
commit eb8427ea46
15 changed files with 440 additions and 3965 deletions

View File

@@ -33,10 +33,9 @@ templ Select(props SelectProps) {
templ.KV("select-lg", props.Size == "lg"),
templ.KV("select-xl", props.Size == "xl"),
}
if props.ID != "" {
id={ props.ID }
}
id={ props.Name }
name={ props.Name }
aria-label={ props.Label }
if props.Required {
required
}