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

Add has-bg helpers for block background colors #1628

Merged
merged 2 commits into from
Apr 8, 2018

Conversation

phoikoi
Copy link
Contributor

@phoikoi phoikoi commented Jan 25, 2018

This is an improvement. There has been no simple way to add background colors in an analogous way to the .has-text helpers for text color, and this PR adds .has-bg helpers to fix the gap.

The CHANGELOG.md has been updated.

Proposed solution

This PR adds .has-bg helpers which parallel the .has-text helpers, in order to provide background colors for blocks.

Tradeoffs

This is the simplest solution I could come up with, and one that tries to be in line with the
existing helpers for text color.

Testing Done

I have confirmed that block items, such as grid cells, receive the background colors indicated by the helper class.

@timacdonald
Copy link
Contributor

I am currently doing this thing using the same class pattern suggested. Would love to see this in the framework!

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