Skip to content

Commit 684bccb

Browse files
committed
v5.1.14
1 parent 4cc5f4a commit 684bccb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/netdata-ui",
3-
"version": "5.1.13",
3+
"version": "5.1.14",
44
"description": "netdata UI kit",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/components/button/styled.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ const getAccentColor = props => {
6767

6868
const getTransparent = getColor(["transparent", "full"])
6969

70-
const colorsByFlavour = ({ flavour = DEFAULT, danger, warning, iconColor }) => {
70+
const colorsByFlavour = ({ flavour = DEFAULT, danger, warning, iconColor, color }) => {
7171
const getErrorColor = danger ? getColor("error") : undefined
7272
const getWarningColor = warning ? getColor("warning") : undefined
73-
const getSpecialColor = getErrorColor || getWarningColor
73+
const getSpecialColor = getErrorColor || getWarningColor || (color ? getColor(color) : undefined)
7474
const getSpecialColorHover = getSpecialColor
7575
? props => lighten(0.2, getSpecialColor(props))
7676
: undefined

0 commit comments

Comments
 (0)