Skip to content

Commit

Permalink
legend checkbox border fixes among default state, inverse, and deacti…
Browse files Browse the repository at this point in the history
…vated
  • Loading branch information
chris-cedrone-cengage committed Nov 16, 2023
1 parent 30f2ef9 commit 8bf0909
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/charts/src/components/CarbonChart/CarbonChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const CarbonChartWrapper = styled.div<{
props.isInverse
? props.theme.colors.neutral900
: props.theme.colors.neutral100};
border: ${props => (props.isInverse ? '1px solid transparent' : '')};
border: none;
width: ${props => props.theme.spaceScale.spacing05};
height: ${props => props.theme.spaceScale.spacing05};
svg{
Expand All @@ -115,6 +115,16 @@ const CarbonChartWrapper = styled.div<{
}
}
}
div.cds--cc--legend.has-deactivated-items{
div.legend-item{
div.checkbox{
border: 1px solid ${props =>
props.isInverse
? props.theme.colors.neutral100
: props.theme.colors.neutral900}
}
}
}
.chart-holder{
.cds--cc--axes g.axis g.tick text{
fill:${props => (props.isInverse ? props.theme.colors.neutral100 : '')};
Expand Down

0 comments on commit 8bf0909

Please sign in to comment.