Change helper text background and foreground colors for Domain type (#23594)

This commit is contained in:
Ushran Gouhar 2025-09-29 13:49:28 +05:30 committed by GitHub
parent 7b698f6a07
commit 2b80a885a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 0 deletions

View File

@ -176,6 +176,19 @@ const AddDomainForm = ({
overlayClassName: 'domain-type-tooltip-container',
tooltipPlacement: 'top-start',
tooltipAlign: { targetOffset: [18, 0] },
slotProps: {
tooltip: {
sx: {
bgcolor: '#fff',
color: '#000',
},
},
arrow: {
sx: {
color: '#fff',
},
},
},
},
};

View File

@ -28,6 +28,7 @@ export interface MUIFormItemLabelProps {
overlayInnerStyle?: React.CSSProperties;
align?: TooltipProps['placement'];
isBeta?: boolean;
slotProps?: Partial<TooltipProps>;
}
const MUIFormItemLabel: FC<MUIFormItemLabelProps> = ({
@ -37,6 +38,7 @@ const MUIFormItemLabel: FC<MUIFormItemLabelProps> = ({
label,
placement = 'top',
showHelperText = true,
slotProps,
}) => {
const { t } = useTranslation();
@ -55,6 +57,7 @@ const MUIFormItemLabel: FC<MUIFormItemLabelProps> = ({
<Tooltip
arrow
placement={placement || 'top'}
slotProps={slotProps}
title={helperText || ''}>
<Box
component="span"

View File

@ -131,6 +131,7 @@ export const getField = (field: FieldProp) => {
label={label}
placement={props?.tooltipPlacement as MUITooltipProps['placement']}
showHelperText={showHelperText}
slotProps={props?.slotProps as Partial<MUITooltipProps>}
/>
);