Skip to content

Further refactor modifier classnames #425

@hubacekj

Description

@hubacekj

Looking at the modifier classes, I think we could further unify their names instead of attempting to build sentence-like names: .isToolbarAlignedToTop ➡️ .isToolbarAlignTop, etc. The pattern would be:

  1. .is<ELEMENT><PROP-NAME><PROP-VALUE> for oneOf prop types, e.g. .isRootColorPrimary,
  2. .is<ELEMENT><PROP-NAME> for truthy boolean prop types, e.g. .isRootBlock.

If you agree, I'd do it in a separate PR (or a commit at least) and also document it in part 4.

Originally posted by @adamkudrna in #424 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BCBreaking change

    Type

    No type

    Projects

    Status

    🔖 To do

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions