Skip to content

Commit

Permalink
Merge pull request #189 from ember-learn/add-text-light
Browse files Browse the repository at this point in the history
adding test-light class and added it to colour pallet demo
  • Loading branch information
ghislaineguerin authored Jul 4, 2019
2 parents f191dc0 + 1656531 commit bc70bdd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addon/styles/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,8 @@

.text-right {
text-align: right;
}
}

.text-light {
color: var(--color-light);
}
10 changes: 10 additions & 0 deletions tests/dummy/app/templates/components/color-pallet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
<span class="{{textClass}} color-pallet__example-text">A</span>


<div class="color-pallet__example-text-result">
<span {{did-insert this.checkPassFail textClass rgb}}></span>
</div>
{{/each}}
</div>

<div class="color-pallet__example-text-row" style="grid-template-columns: repeat({{textClasses.length}}, 1fr)">
{{#each textClasses as |textClass|}}
<span class="{{textClass}} color-pallet__example-text text-light">A</span>

<div class="color-pallet__example-text-result">
<span {{did-insert this.checkPassFail textClass rgb}}></span>
</div>
Expand Down

0 comments on commit bc70bdd

Please sign in to comment.