Skip to content

Commit

Permalink
[charts] Keep axis root classe usage explicit (#14378)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette authored Aug 29, 2024
1 parent 113a612 commit 1a23942
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ export const AxisRoot = styled('g', {
slot: 'Root',
overridesResolver: (props, styles) => styles.root,
})(({ theme }) => ({
[`.${axisClasses.tickLabel}`]: {
[`& .${axisClasses.tickLabel}`]: {
...theme.typography.caption,
fill: (theme.vars || theme).palette.text.primary,
},
[`.${axisClasses.label}`]: {
[`& .${axisClasses.label}`]: {
...theme.typography.body1,
fill: (theme.vars || theme).palette.text.primary,
},

[`.${axisClasses.line}`]: {
[`& .${axisClasses.line}`]: {
stroke: (theme.vars || theme).palette.text.primary,
shapeRendering: 'crispEdges',
strokeWidth: 1,
},
[`.${axisClasses.tick}`]: {
[`& .${axisClasses.tick}`]: {
stroke: (theme.vars || theme).palette.text.primary,
shapeRendering: 'crispEdges',
},
Expand Down

0 comments on commit 1a23942

Please sign in to comment.