Skip to content

Commit

Permalink
Fix RGB color rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Feb 26, 2024
1 parent 02fbfa2 commit 6289a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Segment.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function className(attrs, extraClass) {
}

function colorClass(color, intense, prefix) {
if (color !== undefined) {
if (typeof color === "number") {
if (intense && color < 8) {
color += 8;
}
Expand Down

0 comments on commit 6289a67

Please sign in to comment.