Skip to content

Pattern States Should Always Inherit to Consuming Patterns, Not Just When The Consuming Pattern Has a State #313

@bmuenzenmeyer

Description

@bmuenzenmeyer

I am using Pattern Lab Node v1.2.2.

Expected Behavior

Lower pattern states should inherit upwards to consuming patterns, regardless of the consumer's pattern state.

Actual Behavior

Lower pattern states only inherit upwards to consuming patterns when the consumer has a state applied.

Change

Remove logic that checks for a consumer's pattern state prior to inheritance. Update unit tests.
This should be made on the 1.X path and pulled forward into 2.X

Thanks to Jesse for emailing about this issue!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions