Skip to content

Commit

Permalink
Global Styles: fix browser warning regarding highlight colors (WordPr…
Browse files Browse the repository at this point in the history
…ess#60555)

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
  • Loading branch information
3 people authored and cbravobernal committed Apr 9, 2024
1 parent b52a47d commit 43427f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function HighlightedColors( {
const scaledSwatchSize = normalizedColorSwatchSize * ratio;
return highlightedColors.map( ( { slug, color }, index ) => (
<motion.div
key={ slug }
key={ `${ slug }-${ index }` }
style={ {
height: scaledSwatchSize,
width: scaledSwatchSize,
Expand Down

0 comments on commit 43427f9

Please sign in to comment.