Skip to content

Commit

Permalink
feat: add default Theme for MuiButtonGroup component
Browse files Browse the repository at this point in the history
Signed-off-by: Tharun T <[email protected]>
  • Loading branch information
dottharun committed Jul 10, 2024
1 parent d940a43 commit a98d501
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/theme/components.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Components, Theme } from '@mui/material';
import { MuiAppBar } from './components/appbar.modifiter';
import { MuiButton } from './components/button.modifier';
import { MuiButtonGroup } from './components/buttongroup.modifier';
import { MuiCard } from './components/card.modifier';
import { MuiCheckbox } from './components/checkbox.modifier';
import { MuiCollapse } from './components/collapse.modifier';
Expand Down Expand Up @@ -35,6 +36,7 @@ export const components: Components<Theme> = {
MuiSvgIcon,
MuiTab,
MuiSwitch,
MuiButtonGroup,
MuiButton,
MuiListItem
};
9 changes: 9 additions & 0 deletions src/theme/components/buttongroup.modifier.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Components, Theme } from '@mui/material';

export const MuiButtonGroup: Components<Theme>['MuiButtonGroup'] = {
styleOverrides: {
grouped: ({ theme }) => ({
borderColor: theme.palette.common.white
})
}
};

0 comments on commit a98d501

Please sign in to comment.