mirror of
https://github.com/prymitive/karma
synced 2026-05-09 03:36:44 +00:00
fix(ui): don't use new lines for rgba() style values
This commit is contained in:
@@ -43,18 +43,18 @@ class BaseLabel extends Component {
|
||||
alertStore.data.colors[name][value] !== undefined
|
||||
) {
|
||||
const c = alertStore.data.colors[name][value];
|
||||
style["backgroundColor"] = `rgba(
|
||||
${c.background.red},
|
||||
${c.background.green},
|
||||
${c.background.blue},
|
||||
${c.background.alpha}
|
||||
)`;
|
||||
style["color"] = `rgba(
|
||||
${c.font.red},
|
||||
${c.font.green},
|
||||
${c.font.blue},
|
||||
${c.font.alpha}
|
||||
)`;
|
||||
style["backgroundColor"] = `rgba(${[
|
||||
c.background.red,
|
||||
c.background.green,
|
||||
c.background.blue,
|
||||
c.background.alpha
|
||||
].join(", ")})`;
|
||||
style["color"] = `rgba(${[
|
||||
c.font.red,
|
||||
c.font.green,
|
||||
c.font.blue,
|
||||
c.font.alpha
|
||||
].join(", ")})`;
|
||||
}
|
||||
return style;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user