Skip to content

Commit 416ba4d

Browse files
authored
Fixed unique ID issue (#5190)
1 parent 972509c commit 416ba4d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ui/components/progress-ring/RELEASENOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
- Added aria-label attribute to the progress ring to meet accessibility requirements.
1010

11+
## 2.22.0
12+
13+
### Fixed
14+
15+
- Fixed duplicate IDs by adding helper method
16+
1117
## 2.17.0
1218

1319
### Added

ui/components/progress-ring/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class ProgressRing extends Component {
8686
<svg viewBox={viewBoxParams}>
8787
<circle
8888
className="slds-progress-ring__path"
89-
id={uniqueId}
89+
id={_.uniqueId('slds-progress-ring-path-')}
9090
cx={Number(progressHeadPlotRadius * x)}
9191
cy={Number(progressHeadPlotRadius * y)}
9292
r={progressHeadRadius}

0 commit comments

Comments
 (0)