File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/components/common/label Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import clsx from 'clsx'
22
3+ import { Highlight } from '../text'
4+
35export interface LabelProps
46 extends React . LabelHTMLAttributes < HTMLLabelElement > {
57 required ?: boolean
@@ -13,14 +15,13 @@ export const Label = ({
1315 children,
1416 className = '' ,
1517} : LabelProps ) => {
16- const labelClass = clsx ( 'flex flex-col' , className )
17- const requiredClass = 'text-body3 font-medium text-primary-normal'
18+ const labelClass = clsx ( 'flex flex-col text-body3 font-medium' , className )
1819
1920 return (
2021 < label htmlFor = { htmlFor } className = { labelClass } >
2122 < div className = 'mb-4 flex items-center' >
2223 < span className = 'font-medium text-gray-600' > { labelText } </ span >
23- { required && < span className = { requiredClass } > *</ span > }
24+ { required && < Highlight > *</ Highlight > }
2425 </ div >
2526 { children }
2627 </ label >
You can’t perform that action at this time.
0 commit comments