Skip to content

Commit 9675a8a

Browse files
fix(ColorAccordion, LayeredColorsSelect): add keys to list items (#2942)
1 parent 3a20ba5 commit 9675a8a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/page/theming/ColorAccordion/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export default function ColorAccordion({ ...props }) {
3838

3939
return (
4040
<li
41+
key={color}
4142
className={clsx({
4243
[styles.colorMenuItem]: true,
4344
[styles.colorMenuItemActive]: color === activeColor,

src/components/page/theming/LayeredColorsSelect/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function LayeredColorsSelect({ ...props }) {
9393
const codeColor = variation.rgb ? `rgb(${variation.value})` : `${variation.value}`;
9494

9595
return (
96-
<tr>
96+
<tr key={variation.name}>
9797
<td className={styles.colorName}>{variation.name}</td>
9898
<td className={styles.colorProperty}>
9999
<code>{variation.property}</code>

0 commit comments

Comments
 (0)