Skip to content

Commit

Permalink
fix(ColorAccordion, LayeredColorsSelect): add keys to list items (#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
averyjohnston authored Apr 27, 2023
1 parent 3a20ba5 commit 9675a8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/page/theming/ColorAccordion/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default function ColorAccordion({ ...props }) {

return (
<li
key={color}
className={clsx({
[styles.colorMenuItem]: true,
[styles.colorMenuItemActive]: color === activeColor,
Expand Down
2 changes: 1 addition & 1 deletion src/components/page/theming/LayeredColorsSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function LayeredColorsSelect({ ...props }) {
const codeColor = variation.rgb ? `rgb(${variation.value})` : `${variation.value}`;

return (
<tr>
<tr key={variation.name}>
<td className={styles.colorName}>{variation.name}</td>
<td className={styles.colorProperty}>
<code>{variation.property}</code>
Expand Down

1 comment on commit 9675a8a

@vercel
Copy link

@vercel vercel bot commented on 9675a8a Apr 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-gqykycf8t.vercel.app
ionic-docs-ionic1.vercel.app
ionic-docs-git-main-ionic1.vercel.app

Please sign in to comment.