0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00

only explicitly set color if label is pressent (#4427)

This commit is contained in:
Eric Duong 2021-05-20 15:26:19 -04:00 committed by GitHub
parent cf6a89ab7f
commit f734eb9ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,7 @@ export function BreakdownFilter({ filters, onChange }) {
type={breakdown ? 'primary' : 'default'}
disabled={insight === ViewType.STICKINESS || insight === ViewType.LIFECYCLE}
data-attr="add-breakdown-button"
style={{ color: '#fff' }}
style={label ? { color: '#fff' } : {}}
>
<PropertyKeyInfo value={label || 'Add breakdown'} />
</Button>