Skip to content

Commit 4ecd8cd

Browse files
author
roshni73
committed
change the styling of ui component stories
1 parent ed5acfa commit 4ecd8cd

File tree

15 files changed

+57
-17
lines changed

15 files changed

+57
-17
lines changed

packages/go-ui-storybook/src/stories/Alert.stories.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ type Story = StoryObj<typeof meta>;
3030
export const Info: Story = {
3131
args: {
3232
name: 'info',
33-
title: 'Information',
3433
type: 'info',
3534
nonDismissable: true,
3635
description: 'This alert provides informative details to the user.',
@@ -47,7 +46,6 @@ export const Info: Story = {
4746
export const Success: Story = {
4847
args: {
4948
name: 'success',
50-
title: 'Success',
5149
type: 'success',
5250
nonDismissable: true,
5351
description: 'This alert indicates a successful operation or task.',
@@ -64,7 +62,6 @@ export const Success: Story = {
6462
export const Warning : Story = {
6563
args: {
6664
name: 'warning',
67-
title: 'Warning',
6865
type: 'warning',
6966
nonDismissable: true,
7067
description: 'This alert warns the user about potential issues or risks.',
@@ -74,7 +71,6 @@ export const Warning : Story = {
7471
export const Danger : Story = {
7572
args: {
7673
name: 'danger',
77-
title: 'Danger',
7874
type: 'danger',
7975
nonDismissable: true,
8076
description: 'This alert indicates a dangerous or potentially harmful situation.',
@@ -91,7 +87,6 @@ export const Danger : Story = {
9187
export const NonDismissable: Story = {
9288
args: {
9389
name: 'danger',
94-
title: 'Danger',
9590
type: 'danger',
9691
description: 'This alert indicates a dangerous or potentially harmful situation.',
9792
nonDismissable: true,

packages/go-ui-storybook/src/stories/Button.stories.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,21 @@ export const DropdownItem: Story = {
138138
children: 'Dropdown Item',
139139
},
140140
};
141+
142+
export const ProcessButtonWithIcon: Story = {
143+
args: {
144+
name: 'button',
145+
variant: 'process',
146+
children: 'Process Button',
147+
// icons:<LoaderLineIcon/>
148+
},
149+
};
150+
151+
export const GreyTertiaryButtonWithIcon: Story = {
152+
args: {
153+
name: 'button',
154+
variant: 'grey-tertiary',
155+
children: 'Grey-Tertiary Button',
156+
// icons:<LoaderLineIcon/>
157+
},
158+
};

packages/go-ui-storybook/src/stories/List.stories.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ export const Filtered: Story = {
8989
renderer: Option,
9090
rendererParams,
9191
filtered: true,
92-
filteredEmptyMessage: 'Data is not available for selected filters',
92+
},
93+
};
94+
95+
export const Empty: Story = {
96+
args: {
97+
className: 'list-story',
98+
keySelector,
99+
renderer: Option,
100+
rendererParams,
101+
errorMessage: 'Data is not available for selected filters',
93102
},
94103
};

packages/go-ui-storybook/src/stories/Table.stories.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ const columns = [
191191
'link',
192192
'Link',
193193
({ link, title }) => (
194-
<a href={link}>{title}</a>
194+
<a
195+
className="table-link"
196+
href={link}
197+
>
198+
{title}
199+
</a>
195200
),
196201
(_, item) => ({ link: item.link, title: item.name }),
197202
),

packages/go-ui-storybook/src/stories/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,11 @@
170170
padding-top: var(--go-ui-spacing-md);
171171
padding-bottom: var(--go-ui-spacing-md);
172172
}
173+
174+
.table-link{
175+
color: var(--go-ui-color-text);
176+
}
177+
.table-link:hover {
178+
color: var(--go-ui-color-primary-red);
179+
}
180+

packages/ui/src/components/Alert/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.alert {
22
display: flex;
33
border-radius: var(--go-ui-border-radius-md);
4-
box-shadow: var(--go-ui-box-shadow-2xl);
4+
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
55
width: calc(14rem + 16vw);
66
color: var(--go-ui-color-white);
77

packages/ui/src/components/DefaultMessage/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ function DefaultMessage(props: Props) {
8383
className={_cs(
8484
styles.defaultMessage,
8585
pending && overlayPending && styles.overlay,
86+
empty && styles.emptyMessage,
8687
className,
8788
)}
88-
icon={<AnalysisIcon />}
89+
icon={(!empty || filtered || errored) && <AnalysisIcon />}
8990
compact={compact}
9091
title={messageTitle}
9192
pending={pending}

packages/ui/src/components/DefaultMessage/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
width: 100%;
77
height: 100%;
88
}
9+
&.empty-message {
10+
height: 200px;
11+
padding-top: 40px;
12+
}
913
}

packages/ui/src/components/InputContainer/styles.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
border-radius: var(--go-ui-border-radius-md);
99
background-color: var(--go-ui-color-element-background);
1010
padding: 0 var(--go-ui-spacing-sm);
11-
11+
1212
.input {
1313
padding: var(--go-ui-spacing-xs) 0;
14+
height: 32px;
1415
}
1516
}
1617

packages/ui/src/components/InputLabel/styles.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.input-label {
22
display: flex;
3-
padding: 0 var(--go-ui-spacing-sm);
43
color: var(--go-ui-color-gray-70);
54
gap: var(--go-ui-spacing-xs);
65

0 commit comments

Comments
 (0)