Skip to content

Commit

Permalink
Adjusting the styling use for the card
Browse files Browse the repository at this point in the history
  • Loading branch information
iglep committed Apr 5, 2024
1 parent 85bba53 commit a295e76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/Pega_Extensions_CaseLauncher/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Button,
Configuration
} from '@pega/cosmos-react-core';
import StyledCard from './styles';

// interface for props
export type CaseLauncherProps = {
Expand Down Expand Up @@ -38,7 +39,7 @@ export default function PegaExtensionsCaseLauncher(props: CaseLauncherProps) {

return (
<Configuration>
<Card>
<Card as={StyledCard}>
<CardHeader>
<Text variant='h2'>{heading}</Text>
</CardHeader>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Pega_Extensions_CaseLauncher/styles.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import styled, { css } from 'styled-components';
import { themeDefinition } from '@pega/cosmos-react-core';

export default styled.article(({ theme }: { theme: typeof themeDefinition }) => {
const StyledCard = styled.article(({ theme }: { theme: typeof themeDefinition }) => {
return css`
background-color: ${theme.base.colors.white};
border-radius: 0.25rem;
width: 100%;
`;
});
export default StyledCard;

0 comments on commit a295e76

Please sign in to comment.