Design fixes batch post linaria migration (#18509)
- Currency input - Edit email button full height - Full width ai field - Missing borders - Cmd+K icon button centered
This commit is contained in:
@@ -413,10 +413,8 @@ const StyledShortcutLabel = styled.div<{
|
||||
font-weight: ${themeCssVariables.font.weight.medium};
|
||||
`;
|
||||
|
||||
const StyledIconContainer = styled.div`
|
||||
align-items: center;
|
||||
const StyledMotion = styled(motion.div)`
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
`;
|
||||
|
||||
export const AnimatedButton = ({
|
||||
@@ -491,18 +489,14 @@ export const AnimatedButton = ({
|
||||
data-globally-prevent-click-outside={dataGloballyPreventClickOutside}
|
||||
>
|
||||
{Icon && (
|
||||
<StyledIconContainer>
|
||||
<motion.div animate={animate} transition={transition}>
|
||||
<Icon size={theme.icon.size.sm} />
|
||||
</motion.div>
|
||||
</StyledIconContainer>
|
||||
<StyledMotion animate={animate} transition={transition}>
|
||||
<Icon size={theme.icon.size.sm} />
|
||||
</StyledMotion>
|
||||
)}
|
||||
{animatedSvg && (
|
||||
<StyledIconContainer>
|
||||
<motion.div animate={animate} transition={transition}>
|
||||
{animatedSvg}
|
||||
</motion.div>
|
||||
</StyledIconContainer>
|
||||
<StyledMotion animate={animate} transition={transition}>
|
||||
{animatedSvg}
|
||||
</StyledMotion>
|
||||
)}
|
||||
{title}
|
||||
{hotkeys && !isMobile && (
|
||||
|
||||
Reference in New Issue
Block a user