diff --git a/packages/react-sdk-components/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css b/packages/react-sdk-components/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css index 0529b1b4..3c4f2e8e 100644 --- a/packages/react-sdk-components/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +++ b/packages/react-sdk-components/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css @@ -1,36 +1,29 @@ .quick-link-ul-list { list-style: none; padding: 0; - grid-template-columns: repeat(auto-fill, minmax(min(40ch, 100%), 1fr)); + grid-template-columns: repeat(auto-fit, minmax(min(20ch, 100%), 1fr)); display: grid; gap: calc(1rem); } -.quick-link-list { - background-color: var(--link-button-color); - color: var(--app-text-color); - border-radius: 8px; -} - .quick-link-button { text-transform: capitalize !important; font-size: 16px !important; color: var(--app-text-color) !important; - padding: calc(0.5rem * 2) !important; - height: 6rem; + height: 10rem; width: 100%; - justify-content: start !important; } .quick-link-icon { - width: 1em; - height: 1em; flex-shrink: 0; - filter: var(--svg-color); + object-fit: contain; + width: 3rem; + height: 3rem; } .quick-link-button-span { display: flex; + flex-direction: column; align-items: center; gap: 0.5rem; } diff --git a/packages/react-sdk-components/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx b/packages/react-sdk-components/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx index fef39df0..da34ee82 100644 --- a/packages/react-sdk-components/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +++ b/packages/react-sdk-components/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx @@ -1,4 +1,5 @@ import { Button } from '@mui/material'; +import { makeStyles } from '@mui/styles'; import './WssQuickCreate.css'; // WssQuickCreate is one of the few components that does NOT have getPConnect. @@ -9,8 +10,18 @@ interface WssQuickCreateProps { actions?: any[]; } +const useStyles = makeStyles(theme => ({ + quickLinkList: { + backgroundColor: theme.palette.mode === 'dark' ? 'var(--app-background-color)' : 'var(--link-button-color)', + color: 'var(--app-text-color)', + borderRadius: '16px', + border: '1px solid var(--app-primary-color)' + } +})); + export default function WssQuickCreate(props: WssQuickCreateProps) { const { heading, actions } = props; + const classes = useStyles(); return (
@@ -21,7 +32,7 @@ export default function WssQuickCreate(props: WssQuickCreateProps) { {actions && actions.map(element => { return ( -
  • +