diff --git a/src/components/loader-bar/loader-bar-test.stories.tsx b/src/components/loader-bar/loader-bar-test.stories.tsx
index 094ec6d2cd..74de0db4d5 100644
--- a/src/components/loader-bar/loader-bar-test.stories.tsx
+++ b/src/components/loader-bar/loader-bar-test.stories.tsx
@@ -1,10 +1,13 @@
import React from "react";
+import { ComponentStory } from "@storybook/react";
import LoaderBar, { LoaderBarProps } from ".";
import { LOADER_BAR_SIZES } from "./loader-bar.config";
+import Box from "../box";
+import Typography from "../typography";
export default {
title: "Loader Bar/Test",
- includeStories: ["DefaultStory"],
+ includeStories: ["DefaultStory", "LoaderBarWithMinHeight"],
parameters: {
info: { disable: true },
chromatic: {
@@ -30,3 +33,19 @@ DefaultStory.storyName = "default";
export const LoaderBarComponentTest = (props: LoaderBarProps) => {
return ;
};
+
+export const LoaderBarWithMinHeight: ComponentStory = () => {
+ return (
+
+
+ Small bar
+
+
+
+ );
+};
+
+LoaderBarWithMinHeight.parameters = {
+ chromatic: { disableSnapshot: false },
+ controls: { disable: true },
+};
diff --git a/src/components/loader-bar/loader-bar.style.ts b/src/components/loader-bar/loader-bar.style.ts
index 67a29559c0..1f94e34d2d 100644
--- a/src/components/loader-bar/loader-bar.style.ts
+++ b/src/components/loader-bar/loader-bar.style.ts
@@ -36,7 +36,6 @@ const innerBarAnimation = keyframes`
const StyledLoaderBar = styled.div`
${({ size }) => css`
- display: inline-block;
border-radius: var(--borderRadius400);
height: ${getHeight(size)};
width: 100%;