optimize for lighthouse
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user