From 0cdb5d9b2d83f34d559d85ccf9d306d6b1df5286 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Fri, 4 Nov 2022 15:45:39 +0100 Subject: [PATCH] Review --- docs/LocalesMenuButton.md | 6 +----- .../ra-ui-materialui/src/layout/SidebarToggleButton.tsx | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/LocalesMenuButton.md b/docs/LocalesMenuButton.md index 619cef507a6..5be787de94e 100644 --- a/docs/LocalesMenuButton.md +++ b/docs/LocalesMenuButton.md @@ -71,11 +71,7 @@ The `locale` will be passed to `setLocale` when the user selects the language, a ## `sx`: CSS API -The `` component accepts the usual `className` prop. You can also override many styles of the inner components thanks to the `sx` property (as most MUI components, see their [documentation about it](https://mui.com/customization/how-to-customize/#overriding-nested-component-styles)). This property accepts the following subclasses: - -| Rule name | Description | -|---------------------------|---------------------------------------------------------| -| `& .RaLocalesMenuButton-selectedLanguage` | Applied to the current language element | +The `` component accepts the usual `className` prop. You can also override many styles of the inner components thanks to the `sx` property (as most MUI components, see their [documentation about it](https://mui.com/customization/how-to-customize/#overriding-nested-component-styles)). To override the style of all instances of `` using the [MUI style overrides](https://mui.com/customization/globals/#css), use the `RaLocalesMenuButton` key. diff --git a/packages/ra-ui-materialui/src/layout/SidebarToggleButton.tsx b/packages/ra-ui-materialui/src/layout/SidebarToggleButton.tsx index 28eba3cc639..eccc3407bbe 100644 --- a/packages/ra-ui-materialui/src/layout/SidebarToggleButton.tsx +++ b/packages/ra-ui-materialui/src/layout/SidebarToggleButton.tsx @@ -10,7 +10,6 @@ import { useSidebarState } from './useSidebarState'; * A button that toggles the sidebar. Used by default in the . * @param props The component props * @param {String} props.className An optional class name to apply to the button - */ export const SidebarToggleButton = (props: SidebarToggleButtonProps) => { const translate = useTranslate(); @@ -23,9 +22,7 @@ export const SidebarToggleButton = (props: SidebarToggleButtonProps) => { className={className} title={translate( open ? 'ra.action.close_menu' : 'ra.action.open_menu', - { - _: 'Open/Close menu', - } + { _: 'Open/Close menu' } )} enterDelay={500} >