`
animation: ${shimmer};
display: block;
- background-color: var(--bgColor-muted, ${get('colors.canvas.subtle')});
+ background-color: var(--skeletonLoader-bgColor, ${get('colors.canvas.subtle')});
border-radius: 3px;
height: ${props => props.height || '1rem'};
width: ${props => props.width};
@@ -36,5 +39,15 @@ export const SkeletonBox = styled.div`
outline-offset: -1px;
}
+ ${space};
+ ${color};
+ ${typography};
+ ${layout};
+ ${flexbox};
+ ${grid};
+ ${background};
+ ${border};
+ ${position};
+ ${shadow};
${sx};
`
diff --git a/packages/react/src/internal/components/TextInputInnerVisualSlot.tsx b/packages/react/src/internal/components/TextInputInnerVisualSlot.tsx
index b8370ac12fe..ca43cf800c4 100644
--- a/packages/react/src/internal/components/TextInputInnerVisualSlot.tsx
+++ b/packages/react/src/internal/components/TextInputInnerVisualSlot.tsx
@@ -12,7 +12,7 @@ const TextInputInnerVisualSlot: React.FC<
/** Which side of this visual is being rendered */
visualPosition: 'leading' | 'trailing'
}>
-> = ({children, hasLoadingIndicator, showLoadingIndicator, visualPosition}) => {
+> = ({children, hasLoadingIndicator, showLoadingIndicator, visualPosition, ...props}) => {
if ((!children && !hasLoadingIndicator) || (visualPosition === 'leading' && !children && !showLoadingIndicator)) {
return null
}
@@ -22,7 +22,7 @@ const TextInputInnerVisualSlot: React.FC<
}
return (
-
+
{children && {children}}