Skip to content

Commit

Permalink
Merge pull request #673 from dottharun/buttongroup/theme
Browse files Browse the repository at this point in the history
feat: add default Theme for MuiButtonGroup component
  • Loading branch information
leecalcote authored Jul 10, 2024
2 parents d940a43 + a98d501 commit a9a676e
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 a9a676e

Please sign in to comment.