fix: Skeleton Padding and Width Issue (#9310)

* Fixed the Skeleton Padding and Width Issue

* Fix the Icon Bounce on Skeleton

---------

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Piyush GargandPeer Richelsen authored and GitHub committed 2023-06-05 09:24:16 +00:00
1 parent 7f7d80e653
commit b7cecfbb66
2 files changed
+8 -5

No files matched your search

+3 -1
View File
@@ -62,12 +62,14 @@ const Skeleton = <T extends keyof JSX.IntrinsicElements | React.FC>({
);
};
const SkeletonText: React.FC<SkeletonBaseProps & { invisible?: boolean }> = ({
const SkeletonText: React.FC<SkeletonBaseProps & { invisible?: boolean; style?: React.CSSProperties }> = ({
className = "",
invisible = false,
style,
}) => {
return (
<span
style={style}
className={classNames(
`font-size-0 bg-emphasis inline-block animate-pulse rounded-md empty:before:inline-block empty:before:content-['']`,
className,