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:
Leo Alfred
2024-01-17 05:05:16 -06:00
committed by GitHub
parent 4316950cf9
commit 8864528d55
2 changed files with 15 additions and 22 deletions

View File

@ -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}