Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Fauquette <[email protected]>
Signed-off-by: Bernardo Belchior <[email protected]>
  • Loading branch information
bernardobelchior and alexfauquette authored Feb 28, 2025
1 parent 7a9cb8b commit a41de1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/x-charts/src/ChartsXAxis/ChartsXAxis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ function ChartsXAxis(inProps: ChartsXAxisProps) {
externalSlotProps: slotProps?.axisLabel,
additionalProps: {
style: {
...theme.typography.body1,
lineHeight: 1,
fontSize: 14,
...theme.typography.body1,
textAnchor: 'middle',
dominantBaseline: position === 'bottom' ? 'hanging' : 'auto',
...labelStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export const AxisRoot = styled('g', {
[`& .${axisClasses.label}`]: {
/* The label is measured using only its style prop, so applying properties that change its size will cause the
* measurements to be off. As such, it is recommended to apply those properties through the `labelStyle` prop. */
...theme.typography.body1,
lineHeight: 1,
fill: (theme.vars || theme).palette.text.primary,
},

Expand Down

0 comments on commit a41de1c

Please sign in to comment.