-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Write a new @shopify/polaris-migrator script to increase Spacing coverage. The migration should walk the following declaration and apply passing values.
{
"padding:",
"padding-top:",
"padding-right:",
"padding-bottom:",
"padding-left:",
"margin:",
"margin-top:",
"margin-right:",
"margin-bottom:",
"margin-left:",
"margin-inline-start:",
"margin-inline-end:",
"margin-block-start:",
"margin-block-end:",
"min-height:",
"max-height:",
"min-width:",
"max-width:",
"border:",
"border-width:",
"border-top:",
"border-right:",
"border-bottom:",
"border-left:",
"border-top-width:",
"border-right-width:",
"border-bottom-width:",
"border-left-width:",
"gap:",
"grid-gap:",
"row-gap:",
"column-gap:",
"text-indent:",
"top:",
"right:",
"bottom:",
"left:",
"scale:",
}Related legacy API
Related PRs
- Add migration for sass padding and margin length values #7264
- Add
gapproperties toreplace-spacing-lengthsmigration #7342 - Create
@shopify/polaris-migratorpackage #6852 – includesspacing()function migration - Add migration to
replace-border-declarations#7387
Failing lines
Review failures and determine what is possible to migrate:
- Note values that are easily replaced
- Otherwise, discuss replacement values with team