Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Nov 4, 2022
1 parent c792242 commit 0cdb5d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 1 addition & 5 deletions docs/LocalesMenuButton.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ The `locale` will be passed to `setLocale` when the user selects the language, a

## `sx`: CSS API

The `<LocalesMenuButton>` 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 `<LocalesMenuButton>` 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 `<LocalesMenuButton>` using the [MUI style overrides](https://mui.com/customization/globals/#css), use the `RaLocalesMenuButton` key.

Expand Down
5 changes: 1 addition & 4 deletions packages/ra-ui-materialui/src/layout/SidebarToggleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { useSidebarState } from './useSidebarState';
* A button that toggles the sidebar. Used by default in the <AppBar>.
* @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();
Expand All @@ -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}
>
Expand Down

0 comments on commit 0cdb5d9

Please sign in to comment.