Skip to content

Commit

Permalink
[Tabs] Fix TabIndicatorProps prop missing sx prop (#32503)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-novikov-ipersonality committed May 2, 2022
1 parent d87affa commit 4d49b7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-material/src/Tabs/Tabs.d.ts
Expand Up @@ -88,7 +88,7 @@ export interface TabsTypeMap<P = {}, D extends React.ElementType = typeof Button
* Props applied to the tab indicator element.
* @default {}
*/
TabIndicatorProps?: React.HTMLAttributes<HTMLDivElement>;
TabIndicatorProps?: React.HTMLAttributes<HTMLDivElement> & { sx?: SxProps<Theme> };
/**
* Props applied to the [`TabScrollButton`](/material-ui/api/tab-scroll-button/) element.
* @default {}
Expand Down
2 changes: 2 additions & 0 deletions packages/mui-material/src/Tabs/Tabs.spec.tsx
Expand Up @@ -13,3 +13,5 @@ function testOnChange() {
}

const TabTest = () => <Tabs TabIndicatorProps={{ style: { backgroundColor: 'green' } }} />;

const TabIndicatorSxTest = () => <Tabs TabIndicatorProps={{ sx: {} }} />;

0 comments on commit 4d49b7a

Please sign in to comment.