Fix connection health in light theme
This commit is contained in:
@@ -18,15 +18,20 @@ const styles: StyleRulesCallback = theme => ({
|
|||||||
color: orange[600],
|
color: orange[600],
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
boxShadow: theme.shadows[10],
|
boxShadow: theme.shadows[2].split('),').map(s => `inset ${s}`).join('),'),
|
||||||
padding: '4px', borderRadius: '50%', backgroundColor: '#eee'
|
padding: '6px',
|
||||||
}
|
borderRadius: '50%',
|
||||||
|
backgroundColor: '#eee',
|
||||||
|
width: '35px',
|
||||||
|
height: '35px',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
classes: any
|
classes: any
|
||||||
connected: boolean
|
connected: boolean
|
||||||
health?: ConnectionHealth
|
health?: ConnectionHealth
|
||||||
|
withBackground?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
class ConnectionHealthIndicator extends React.Component<Props, {}> {
|
class ConnectionHealthIndicator extends React.Component<Props, {}> {
|
||||||
@@ -42,9 +47,7 @@ class ConnectionHealthIndicator extends React.Component<Props, {}> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip title={`Connection health "${health}"`}>
|
<Tooltip title={`Connection health "${health}"`}>
|
||||||
<div className={classes.icon}>
|
<DeviceHubOutlined className={`${[classes[health]]} ${this.props.withBackground ? classes.icon : ''}`} />
|
||||||
<DeviceHubOutlined className={classes[health]} />
|
|
||||||
</div>
|
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user