From d3b2acb10fe4a09563e2839eed61f3f492b041f2 Mon Sep 17 00:00:00 2001 From: Zeeshan Tamboli Date: Thu, 31 Aug 2023 20:23:02 +0530 Subject: [PATCH] [TabScrollButton] Extend ButtonBase types (#38719) --- .../mui-material/src/TabScrollButton/TabScrollButton.d.ts | 5 +++-- .../src/TabScrollButton/TabScrollButton.spec.tsx | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/mui-material/src/TabScrollButton/TabScrollButton.d.ts b/packages/mui-material/src/TabScrollButton/TabScrollButton.d.ts index 3af46711d867a4..e8d396e4a49b12 100644 --- a/packages/mui-material/src/TabScrollButton/TabScrollButton.d.ts +++ b/packages/mui-material/src/TabScrollButton/TabScrollButton.d.ts @@ -1,7 +1,8 @@ import * as React from 'react'; import { SxProps } from '@mui/system'; import { SlotComponentProps } from '@mui/base'; -import { InternalStandardProps as StandardProps, SvgIcon, Theme } from '..'; +import { ButtonBaseProps } from '../ButtonBase'; +import { SvgIcon, Theme } from '..'; import { TabScrollButtonClasses } from './tabScrollButtonClasses'; export interface TabScrollButtonStartIconSlotPropsOverrides {} @@ -11,7 +12,7 @@ export interface TabScrollButtonOwnerState extends TabScrollButtonProps { isRtl: boolean; } -export interface TabScrollButtonProps extends StandardProps> { +export interface TabScrollButtonProps extends ButtonBaseProps { /** * The content of the component. */ diff --git a/packages/mui-material/src/TabScrollButton/TabScrollButton.spec.tsx b/packages/mui-material/src/TabScrollButton/TabScrollButton.spec.tsx index c0449118ae062f..3fb299deb1d248 100644 --- a/packages/mui-material/src/TabScrollButton/TabScrollButton.spec.tsx +++ b/packages/mui-material/src/TabScrollButton/TabScrollButton.spec.tsx @@ -29,3 +29,6 @@ function SampleIcon() { }), }} />; + +// Test that ButtonBase props should be available +;