Skip to content

Commit 6b49a15

Browse files
committed
Fix ProgressBar
1 parent 92ea47e commit 6b49a15

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/progress-bar/src/ProgressBar/ProgressBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function ProgressBar(props: ProgressBarProps) {
145145
>
146146
<div className={headerStyles}>
147147
<Label
148-
data-lgid={lgIds.root} // handled by <Label> internally
148+
data-lgid={lgIds.label} // handled by <Label> internally
149149
id={labelId}
150150
htmlFor={barId}
151151
className={truncatedTextStyles}
@@ -209,7 +209,7 @@ export function ProgressBar(props: ProgressBarProps) {
209209
<Description
210210
id={descId}
211211
disabled={disabled}
212-
data-lgid={lgIds.root} // handled by <Description> internally
212+
data-lgid={lgIds.description} // handled by <Description> internally
213213
className={cx({ [getAnimatedTextStyles()]: isNewDescription })}
214214
// if on fade-in transition, reset state after animation ends
215215
onAnimationEnd={() => setIsNewDescription(false)}

packages/progress-bar/src/testing/getTestUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export const getLgIds = (root: `lg-${string}` = DEFAULT_LGID_ROOT) => {
1313
track: `${root}-track`,
1414
fill: `${root}-fill`,
1515
valueText: `${root}-value_text`,
16+
label: `${root}-label`,
17+
description: `${root}-description`,
1618
} as const;
1719
};
1820

0 commit comments

Comments
 (0)