Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Pseudo-pattern ordering #110

Description

@heitoralthmann

Had a hard time trying to adjust the order the variations get displayed on the screen.

My first attempt was to do something like:

- pattern.twig
- pattern.yml
- 01-pattern~variation2.yml
- 02-pattern~variation3.yml
- 03-pattern~variation1.yml

Even though it reordered the variations on the screen I'd lose all the pattern data set on the variation.

Only after spending some good time on researching was that I ran across pattern-lab/patternlab-php#103 to find out that the correct way of doing this is this:

- pattern.twig
- pattern.yml
- pattern~01-variation2.yml
- pattern~02-variation3.yml
- pattern~03-variation1.yml

The thing here is that I couldn't find anywhere in the documentation something like "how to reorder pseudo-partterns".

The pages that felt most like having an answer was Reorganizing Patterns and Using Pseudo-Patterns, but none of those show how to do this.

Before going and editing the docs, I'd like to ask for advice as to where would be the best page to add such instructions?

If this piece of information is available somewhere else I couldn't find, please pardon me and close this issue.

Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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