Skip to content

Commit 008749e

Browse files
author
roshni73
committed
Add gray tertiary button for button component
1 parent dd297bd commit 008749e

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ export const Tertiary: Story = {
106106
export const TertiaryButtonWithIcon: Story = {
107107
args: {
108108
name: 'button',
109-
variant: 'primary',
110-
children: 'Primary Button',
109+
variant: 'tertiary',
110+
children: 'tertiary Button',
111111
// icons: <DownloadTwoFillIcon /> ,
112112
},
113113
parameters: {
@@ -139,20 +139,20 @@ export const DropdownItem: Story = {
139139
},
140140
};
141141

142-
export const ProcessButtonWithIcon: Story = {
142+
export const GreyTertiaryButtonWithIcon: Story = {
143143
args: {
144144
name: 'button',
145-
variant: 'process',
146-
children: 'Process Button',
147-
// icons:<LoaderLineIcon/>
145+
variant: 'grey-tertiary',
146+
children: 'Grey-Tertiary Button',
147+
// icons: <DownloadTwoFillIcon />
148148
},
149149
};
150150

151-
export const GreyTertiaryButtonWithIcon: Story = {
151+
export const ProcessButtonWithIcon: Story = {
152152
args: {
153153
name: 'button',
154-
variant: 'grey-tertiary',
155-
children: 'Grey-Tertiary Button',
154+
variant: 'secondary',
155+
children: 'Process Button',
156156
// icons:<LoaderLineIcon/>
157157
},
158158
};

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@
155155
}
156156
}
157157

158+
&.grey-tertiary {
159+
--border-radius: unset;
160+
--padding: var(--go-ui-spacing-sm) var(--go-ui-spacing-lg);
161+
background-color: var(--go-ui-color-background);
162+
}
163+
158164
&.disabled {
159165
opacity: var(--go-ui-opacity-disabled-element);
160166
--cursor: not-allowed;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.dropdown-menu {
22
align-items: center;
3+
height: 32px;
34

45
.icons,
56
.content,
@@ -16,7 +17,7 @@
1617
.dropdown-content {
1718
display: flex;
1819
flex-direction: column;
19-
padding: var(--go-ui-spacing-sm) 0;
20+
padding-left: 24px;
2021

2122
:hover {
2223
background-color:var(--go-ui-color-gray)

0 commit comments

Comments
 (0)