Skip to content

Commit

Permalink
Global Styles: Restore the default variation to the color and typogra…
Browse files Browse the repository at this point in the history
…phy style tiles
  • Loading branch information
scruffian committed May 23, 2024
1 parent f49e0b5 commit a489c0f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,12 @@ export default function useThemeStyleVariationsByProperty( {
cloneDeep( variation ),
property
);

// Remove variations that are empty once the property is filtered out.
if ( Object.keys( variationFilteredByProperty ).length === 0 ) {
if (
variation.title !== 'Default' &&
Object.keys( variationFilteredByProperty ).length === 0
) {
return accumulator;
}

Expand Down

0 comments on commit a489c0f

Please sign in to comment.