Skip to content

Commit

Permalink
Use same colors for in page labels as well
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsalminen committed Mar 1, 2018
1 parent f88425c commit 1690020
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 7 additions & 2 deletions docs/styleguide.styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,17 @@ strong a[class^="rsg--link"] {
color: #fff;
}

.status-wip {
.status-review,
.status-under-review {
background: #ffbb08;
color: #000;
}

.status-prototype,
.status-prototype {
background: rgb(37, 138, 239);
color: #fff;
}

.status-deprecated {
background: #ed4b37;
color: #fff;
Expand Down
6 changes: 5 additions & 1 deletion docs/utils/statusLabels.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ export default {
label.className = "status"

if (value) {
label.innerHTML = value
label.className += " status-" + value
if (value === "review") {
label.innerHTML = "under review"
} else {
label.innerHTML = value
}
}
container.appendChild(label)
}
Expand Down

0 comments on commit 1690020

Please sign in to comment.