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 (WordPress#64700)

Co-authored-by: richtabor <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored and bph committed Aug 31, 2024
1 parent 0ec3f69 commit 0eb8f50
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 0eb8f50

Please sign in to comment.