Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Nov 7, 2023
1 parent 38e46c4 commit f6bd7e6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/pages/x/api/charts/charts-reference-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"import { ChartsReferenceLine } from '@mui/x-charts';"
],
"styles": {
"classes": ["root", "verticale", "horizontal", "line", "label"],
"classes": ["root", "vertical", "horizontal", "line", "label"],
"globalClasses": {},
"name": "MuiChartsReferenceLine"
},
Expand Down
12 changes: 7 additions & 5 deletions docs/translations/api-docs/charts/charts-reference-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@
},
"classDescriptions": {
"root": { "description": "Styles applied to the root element." },
"verticale": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the root element is reference line is verticale"
"vertical": {
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "the reference line is vertical"
},
"horizontal": {
"description": "Styles applied to {{nodeName}}.",
"nodeName": "the root element is reference line is horizontal"
"description": "Styles applied to {{nodeName}} if {{conditions}}.",
"nodeName": "the root element",
"conditions": "the reference line is horizontal"
},
"line": { "description": "Styles applied to {{nodeName}}.", "nodeName": "the reference line" },
"label": { "description": "Styles applied to {{nodeName}}.", "nodeName": "the reference label" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
export interface ChartsReferenceLineClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element is reference line is verticale. */
verticale: string;
/** Styles applied to the root element is reference line is horizontal. */
/** Styles applied to the root element if the reference line is vertical. */
vertical: string;
/** Styles applied to the root element if the reference line is horizontal. */
horizontal: string;
/** Styles applied to the reference line. */
line: string;
Expand All @@ -22,5 +22,5 @@ export function getReferenceLineUtilityClass(slot: string) {

export const referenceLineClasses: ChartsReferenceLineClasses = generateUtilityClasses(
'MuiChartsReferenceLine',
['root', 'verticale', 'horizontal', 'line', 'label'],
['root', 'vertical', 'horizontal', 'line', 'label'],
);

0 comments on commit f6bd7e6

Please sign in to comment.