Skip to content

Commit

Permalink
Use four color palette colors instead of five for useStylesPreviewCol…
Browse files Browse the repository at this point in the history
…ors (#64700)

Co-authored-by: richtabor <richtabor@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
3 people authored Aug 22, 2024
1 parent 5266ed8 commit c926af7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useStylesPreviewColors } from './hooks';

export default function PresetColors() {
const { paletteColors } = useStylesPreviewColors();
return paletteColors.slice( 0, 5 ).map( ( { slug, color }, index ) => (
return paletteColors.slice( 0, 4 ).map( ( { slug, color }, index ) => (
<div
key={ `${ slug }-${ index }` }
style={ {
Expand Down

0 comments on commit c926af7

Please sign in to comment.