Center InternalDatePicker Clear button (#3265)
* Center InternalDatePicker Clear button * Add back Clear button padding * Center date picker clear button through props * Refactor StyledButtonContainer padding * Refactor StyledButtonContainer to extend MenuItem * Use custom date picker Clear button implementation * Undo MenuItem changes * Refactor new date picker code * Refactor datepicker solution * Rename StyledButtonContent to StyledButton * Remove unnecessary menu-item class
This commit is contained in:
@ -10,12 +10,14 @@ import {
|
||||
} from './StyledMenuItemBase';
|
||||
|
||||
type MenuItemLeftContentProps = {
|
||||
className?: string;
|
||||
LeftIcon: IconComponent | null | undefined;
|
||||
showGrip?: boolean;
|
||||
text: string;
|
||||
};
|
||||
|
||||
export const MenuItemLeftContent = ({
|
||||
className,
|
||||
LeftIcon,
|
||||
text,
|
||||
showGrip = false,
|
||||
@ -23,7 +25,7 @@ export const MenuItemLeftContent = ({
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
<StyledMenuItemLeftContent>
|
||||
<StyledMenuItemLeftContent className={className}>
|
||||
{showGrip && (
|
||||
<IconGripVertical
|
||||
size={theme.icon.size.md}
|
||||
|
||||
Reference in New Issue
Block a user