Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Adding a custom Pattern State is not being reflected #125

Open
morgaca opened this issue Oct 11, 2018 · 0 comments
Open

Adding a custom Pattern State is not being reflected #125

morgaca opened this issue Oct 11, 2018 · 0 comments

Comments

@morgaca
Copy link

morgaca commented Oct 11, 2018

before posting an issue, try chatting on https://gitter.im/pattern-lab/node
Unfortunately, this is blocked by corporate network

I am using Pattern Lab Node- Gulp Edition v2.12.0 on Mac.

Expected Behavior

Add an Custom Pattern State for inbacklog as per https://patternlab.io/docs/pattern-states.html
Expect to see the colour displayed when the application has reloaded.

Actual Behavior

Intended colour not being picked up.

screen shot 2018-10-11 at 15 45 21

Steps to Reproduce
./source/css/pattern-scaffolding.css
.inbacklog::before {
  color: blueviolet !important;
}
./patternlab-config.json
{
    "patternStateCascade": ["inbacklog", "inprogress", "inreview", "complete"],
}
./source/_patterns/00-atoms/03-lists/00-unordered.md
---
title: Unordered List
state: inbacklog
---
Additional information

pattern-scaffolding.css file added to ./source/_meta/00-head.mustache results in the CSS file being included only in the iframe, not available to the entire application.

screen shot 2018-10-11 at 15 46 52

However, other styles in pattern-scaffolding.css are being picked up e.g. .sg-colors providing a container for the colour palette.

screen shot 2018-10-11 at 15 59 35

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant