File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ const Checkbox = React.forwardRef(
137
137
className = { cx ( labelStyle , labelHoverStyle [ theme ] , {
138
138
[ disabledLabelStyle ] : disabled ,
139
139
} ) }
140
- data-lgid = { lgIds . root }
141
- data-testid = { lgIds . root }
140
+ data-lgid = { lgIds . label }
141
+ data-testid = { lgIds . label }
142
142
>
143
143
< input
144
144
{ ...rest }
@@ -186,8 +186,8 @@ const Checkbox = React.forwardRef(
186
186
< Description
187
187
className = { descriptionStyle }
188
188
disabled = { disabled }
189
- data-lgid = { lgIds . root }
190
- data-testid = { lgIds . root }
189
+ data-lgid = { lgIds . description }
190
+ data-testid = { lgIds . description }
191
191
>
192
192
{ description }
193
193
</ Description >
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ export const DEFAULT_LGID_ROOT = 'lg-checkbox';
5
5
export const getLgIds = ( root : LgIdString = DEFAULT_LGID_ROOT ) => {
6
6
const ids = {
7
7
root,
8
+ label : `${ root } -label` ,
9
+ description : `${ root } -description` ,
8
10
} as const ;
9
11
return ids ;
10
12
} ;
You can’t perform that action at this time.
0 commit comments