Skip to content

Add migration to increase Spacing coverage #7212

@lgriffee

Description

@lgriffee

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

Failing lines

Review failures and determine what is possible to migrate:

  • Note values that are easily replaced
  • Otherwise, discuss replacement values with team

Data

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions