Skip to content

Commit 0c534bb

Browse files
committed
fix lineAndMark classes
1 parent 30d0bd5 commit 0c534bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/x-charts/src/ChartsLabel/labelMarkClasses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface ChartsLabelMarkClasses {
1818
fill: string;
1919
}
2020

21-
export function getLabelMarkUtilityClass(slot: string) {
21+
function getLabelMarkUtilityClass(slot: string) {
2222
return generateUtilityClass('MuiChartsLabelMark', slot);
2323
}
2424

@@ -30,7 +30,7 @@ export const labelMarkClasses: ChartsLabelMarkClasses = generateUtilityClasses(
3030
export const useUtilityClasses = (props: ChartsLabelMarkProps) => {
3131
const { type } = props;
3232
const slots = {
33-
root: typeof type === 'function' ? ['root'] : ['root', type],
33+
root: typeof type === 'function' ? ['root'] : ['root', type === 'line+mark' ? 'lineAndMark' : type],
3434
fill: ['fill'],
3535
};
3636

0 commit comments

Comments
 (0)