Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit d7cc3f7

Browse files
author
Mike England
committed
Add required prop to Select label
1 parent ffb9aaa commit d7cc3f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/atoms/Inputs/Select/Select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function Select({
2626
}) {
2727
return (
2828
<div className={cn(styles.select, className)}>
29-
{label && <label>{label}</label>}
29+
{label && <label required={isRequired}>{label}</label>}
3030
<Field as="select" id={id} name={id} required={isRequired}>
3131
{!!options?.length > 0 &&
3232
options.map((option, key) => {

0 commit comments

Comments
 (0)