Skip to content

Commit b050ddc

Browse files
authored
fix radioButton disabled colors (#434)
1 parent 7ca20b3 commit b050ddc

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

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": "2.8.10",
3+
"version": "2.8.12",
44
"description": "netdata UI kit",
55
"main": "./lib/index.js",
66
"files": [

src/components/radio-button/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import React from "react"
22
import { Text } from "src/components/typography"
3-
import { Input, Container, IconContainer, StyledIcon } from "./styled"
3+
import { Container, IconContainer, Input, StyledIcon } from "./styled"
44

55
const radioButtonStyles = {
6-
disabled: { containerColor: "disabled", dotColor: "disabled", borderColor: "disabled" },
6+
disabled: {
7+
containerColor: "disabledBackground",
8+
dotColor: "disabledBackground",
9+
borderColor: "disabledBackground",
10+
},
711
checked: { containerColor: "inputBg", dotColor: "primary", borderColor: "inputBorder" },
812
checkedDisabled: { containerColor: "inputBg", dotColor: "disabled", borderColor: "inputBorder" },
913
default: { containerColor: "inputBg", dotColor: "bright", borderColor: "inputBorder" },

src/components/radio-button/styled.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const IconContainer = styled.div`
3131
align-items: center;
3232
justify-content: center;
3333
overflow: hidden;
34+
flex: 0 0 auto;
3435
3536
height: 20px;
3637
width: 20px;

0 commit comments

Comments
 (0)