Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterate branding model #300

Merged
merged 3 commits into from
May 10, 2018
Merged

Iterate branding model #300

merged 3 commits into from
May 10, 2018

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented May 9, 2018

Improve the colour branding model following @tijmenb 's comments on the PR to add it.

Note that there are a few components that have started using this model already, I'll need to rebase and update these PRs once this change is approved.

@tijmenb tijmenb temporarily deployed to govuk-publishing-compon-pr-300 May 9, 2018 12:07 Inactive
@tijmenb tijmenb temporarily deployed to govuk-publishing-compon-pr-300 May 9, 2018 12:40 Inactive
@vanitabarrett
Copy link
Contributor

Looks good to me 👍

My only question... our branding classes aren't specific to the component that's calling it (i.e: the styling isn't applicable to only .gem-c-[component-name]). I'm not sure if this is a problem? I guess it's not as the brand styling is always the same...

@andysellick
Copy link
Contributor Author

@vanitabarrett I'd originally planned to make it component specific but couldn't think of a way of doing it that didn't result in duplicating all of the branding styles for every component. This way it can be shared between more than one component without a hit to the size of the CSS.

- rename get_brand method
- have explicit methods for color and border-color instead of one with a parameter
- use new methods
- add test
@tijmenb tijmenb temporarily deployed to govuk-publishing-compon-pr-300 May 10, 2018 12:57 Inactive
@andysellick andysellick merged commit 5dc0bb1 into master May 10, 2018
@andysellick andysellick deleted the iterate-branding branch May 10, 2018 13:02
@andysellick andysellick mentioned this pull request May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants