Skip to content

[Feature request] Add shorthand support for scroll-padding and scroll-margin in enforces-shorthand rule #432

@Mini-ghost

Description

@Mini-ghost

Is your feature request related to a problem? Please describe.
The enforces-shorthand rule doesn’t detect shorthand opportunities for scroll-padding and scroll-margin.
For example, scroll-pl-3 scroll-pr-3 could be scroll-px-3, but no warning is shown.

Describe the solution you'd like
Add shorthand support for scroll-padding and scroll-margin utilities, just like p-* and m-*.
For example:

  • scroll-pl-* scroll-pr-*scroll-px-*
  • scroll-mt-* scroll-mb-*scroll-my-*
  • support negative values like -scroll-ml-2 -scroll-mr-2-scroll-mx-2.

I'm happy to contribute a PR to implement and test it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions