Skip to content

Commit ecba3ca

Browse files
authored
Merge branch 'master' into master
2 parents 53dfbb4 + 34ade11 commit ecba3ca

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

src/custom/CatalogDetail/ActionButton.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
5050
{showOpenPlaygroundAction && (
5151
<ActionButton
5252
sx={{
53+
borderRadius: '0.2rem',
5354
backgroundColor: theme.palette.background.cta?.default,
5455
color: theme.palette.text.inverse,
5556
gap: '10px',
@@ -80,6 +81,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
8081
sx={{
8182
backgroundColor: showOpenPlaygroundAction ? 'transparent' : undefined,
8283
color: theme.palette.text.default,
84+
borderRadius: '0.2rem',
8385
gap: '10px',
8486
border: `1px solid ${theme.palette.border.normal}`
8587
}}
@@ -98,6 +100,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
98100
)}
99101
<ActionButton
100102
sx={{
103+
borderRadius: '0.2rem',
101104
backgroundColor: 'transparent',
102105
border: `1px solid ${theme.palette.border.normal}`,
103106
gap: '10px',
@@ -126,6 +129,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
126129
{showInfoAction && (
127130
<ActionButton
128131
sx={{
132+
borderRadius: '0.2rem',
129133
backgroundColor: 'transparent',
130134
border: `1px solid ${theme.palette.border.normal}`,
131135
gap: '10px',
@@ -140,6 +144,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
140144
{showDeleteAction && (
141145
<UnpublishAction
142146
sx={{
147+
borderRadius: '0.2rem',
143148
gap: '10px'
144149
}}
145150
onClick={handleDelete}
@@ -151,6 +156,7 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
151156
{showUnpublishAction && (
152157
<UnpublishAction
153158
sx={{
159+
borderRadius: '0.2rem',
154160
gap: '10px'
155161
}}
156162
onClick={handleUnpublish}

src/custom/DashboardWidgets/GettingStartedWidget/ActionButtonCard.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,7 @@ const ActionButtonCard = ({
194194
<CustomComponentWrapper>{customComponent}</CustomComponentWrapper>
195195
{actionButton && (
196196
<CardActions>
197-
<Button
198-
disabled={disabled}
199-
variant="contained"
200-
href={href}
201-
onClick={onClick}
202-
size="small"
203-
>
197+
<Button disabled={disabled} variant="contained" href={href} onClick={onClick}>
204198
{showProgress ? (percentage === 100 ? 'Revisit' : btnTitle) : btnTitle}
205199
</Button>
206200
</CardActions>

src/custom/Workspaces/styles.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Box, Button, Card, Checkbox, Grid, IconButton, Typography } from '../../base';
22
import { DeleteIcon, EditIcon } from '../../icons';
33
import { styled, useTheme } from '../../theme';
4+
import { charcoal } from '../../theme/colors/colors';
45
import { CustomTooltip } from '../CustomTooltip';
56

67
export const ModalActionDiv = styled('div')({
@@ -180,6 +181,7 @@ export const AllocationWorkspace = styled(AllocationButton)({
180181

181182
export const PopupButton = styled(Button)(({ theme }) => ({
182183
width: '100%',
184+
borderRadius: '4px',
183185
background: theme.palette.background.brand?.default,
184186
boxShadow: '0px 4px 4px 0px rgba(0, 0, 0, 0.25)',
185187
display: 'flex',
@@ -213,6 +215,21 @@ export const TabCount = styled('p')<TabStyleProps>(({ theme, textColor }) => ({
213215
color: textColor || theme.palette.text.constant?.white
214216
}));
215217

218+
export const ViewButton = styled(Button)(({ theme }) => ({
219+
width: '100%',
220+
borderRadius: '4px',
221+
background: theme.palette.text.default,
222+
boxShadow: '0px 4px 4px 0px rgba(0, 0, 0, 0.25)',
223+
display: 'flex',
224+
flexDirection: 'column',
225+
marginBottom: '10px',
226+
color: `${charcoal[40]}30 !important`,
227+
'&:hover': {
228+
background: theme.palette.text.default
229+
},
230+
padding: '15px 10px'
231+
}));
232+
216233
interface IconWrapperProps {
217234
disabled?: boolean;
218235
}

src/theme/components/button.modifier.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const MuiButton: Components<Theme>['MuiButton'] = {
1313
} = theme;
1414
return {
1515
...textB2SemiBold,
16-
borderRadius: '0.5rem',
1716
fontWeight: 500,
1817
'&.MuiButton-contained': {
1918
color: constant?.white,

src/theme/theme.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ export const createCustomTheme = (mode: PaletteMode, brandPalette?: Interactiven
2626
},
2727
components,
2828
typography: typography(mode),
29-
breakpoints: {},
30-
shape: {
31-
borderRadius: 8
32-
}
29+
breakpoints: {}
3330
});
3431
};

0 commit comments

Comments
 (0)