Skip to content

Commit

Permalink
fix(tailwind): fix animation-loader class
Browse files Browse the repository at this point in the history
Update packages/orbit-components/src/Loading/index.tsx

Co-authored-by: Daniel Sil <daniel.sil@kiwi.com>

Update packages/orbit-components/src/Loading/index.tsx

Co-authored-by: Daniel Sil <daniel.sil@kiwi.com>
  • Loading branch information
mainframev and DSil committed Oct 2, 2023
1 parent 53aa0df commit c33ea88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/orbit-components/src/Loading/index.tsx
Expand Up @@ -10,7 +10,7 @@ import useTheme from "../hooks/useTheme";
const CircleLoader = ({ animationDelay }: { animationDelay?: string }) => {
return (
<div
className="animate-loader rounded-circle bg-cloud-dark h-xs w-xs me-[6px] [&>*:nth-child(3)]:my-0"
className="animate-loader rounded-circle bg-cloud-dark h-xs w-xs me-[6px] [&:nth-child(3)]:m-0"
style={{ animationDelay }}
/>
);
Expand Down Expand Up @@ -99,7 +99,7 @@ const Loading = ({
type === TYPE_OPTIONS.BOX_LOADER && "h-[80px] justify-center",
type === TYPE_OPTIONS.PAGE_LOADER && "h-[120px] flex-col justify-center",
])}
style={{ height: `${customSize}px` }}
style={{ height: customSize }}
data-test={dataTest}
id={id}
>
Expand Down
Expand Up @@ -484,7 +484,7 @@ exports[`orbitPreset should match snapshot 1`] = `
},
"animation": {
"bounce": "bounce 1s infinite",
"loader": "loader 1s 1.25s infinite ease-in-out",
"loader": "loader 1.25s infinite ease-in-out",
"none": "none",
"ping": "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",
"pulse": "pulse 1.5s infinite",
Expand Down
Expand Up @@ -202,7 +202,7 @@ const cfg = (options?: Options): Config => {
animation: {
"pulse-slow": "slow-pulse 2s ease-in-out 0.5s infinite",
spinner: "spinner 0.75s linear infinite",
loader: "loader 1s 1.25s infinite ease-in-out",
loader: "loader 1.25s infinite ease-in-out",
pulse: "pulse 1.5s infinite",
},
textColor: Object.entries(getForegroundColors()).reduce((acc, [key, value]) => {
Expand Down

0 comments on commit c33ea88

Please sign in to comment.