Skip to content

Commit bc48fb5

Browse files
author
React-Admin CI
committed
Fix iconPosition prop is passed to DOM elements in Tab and FormTab
1 parent eab8472 commit bc48fb5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

packages/ra-ui-materialui/src/detail/Tab.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const Tab = ({
6666
className,
6767
divider,
6868
icon,
69+
iconPosition,
6970
label,
7071
record,
7172
spacing = 1,
@@ -97,6 +98,7 @@ export const Tab = ({
9798
label={tabLabel}
9899
value={value}
99100
icon={icon}
101+
iconPosition={iconPosition}
100102
className={clsx('show-tab', className)}
101103
{...(syncWithLocation ? propsForLink : {})} // to avoid TypeScript screams, see https://github.com/mui/material-ui/issues/9106#issuecomment-451270521
102104
{...rest}

packages/ra-ui-materialui/src/form/FormTab.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const FormTab = (props: FormTabProps) => {
1313
count,
1414
hidden,
1515
icon,
16+
iconPosition,
1617
intent,
1718
label,
1819
onChange,
@@ -32,6 +33,7 @@ export const FormTab = (props: FormTabProps) => {
3233
count={count}
3334
value={value}
3435
icon={icon}
36+
iconPosition={iconPosition}
3537
className={className}
3638
syncWithLocation={syncWithLocation}
3739
onChange={onChange}

0 commit comments

Comments
 (0)