This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
spacingSizes: Missing Spacing/70 and Spacing/80 spacing presets #710
Labels
[Type] Bug
Something isn't working
Twenty Twenty-Three supports the following spacing presets:
Twenty Twenty-Four supports the following spacing presets:
I totally understand why the decision was made to start the preset scale from slug
10
instead of30
. This however creates an issue for all existing block patterns that utilize:--wp--preset--spacing--70
and--wp--preset--spacing--80
presets.For example our Footer with 3 Menus pattern in WooCommerce Blocks: woocommerce/woocommerce-blocks#11295 (comment)
<!-- wp:columns {"style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":{"top":"var:preset|spacing|70","left":"var:preset|spacing|80"}}}} -->
The spacing will be broken when switching to Twenty Twenty-Four.
In theory, adding the
70
and80
slug presets would solve this issue:This however will create a bad experience for new users, where the
7
value will be lower than6
.I don't know what the ideal solution is here.
I am happy to submit a PR when a solution is agreed upon :)
The text was updated successfully, but these errors were encountered: