Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polish Card component. #35245

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Render box-shadow border on top of Cards content
  • Loading branch information
ciampo committed Oct 13, 2021
commit dfc4b417c376ebdce0c3d21026fd181e60ac0fd5
18 changes: 16 additions & 2 deletions packages/components/src/card/styles.js
Original file line number Diff line number Diff line change
@@ -9,8 +9,20 @@ import { css } from '@emotion/react';
import { COLORS, CONFIG } from '../utils';

export const Card = css`
box-shadow: inset 0 0 0 1px ${ CONFIG.surfaceBorderColor };
outline: none;

&::before {
content: '';

box-shadow: inset 0 0 0 1px ${ CONFIG.surfaceBorderColor };
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;

pointer-events: none;
}
`;

export const Header = css`
@@ -77,7 +89,9 @@ export const borderColor = css`
`;

export const boxShadowless = css`
box-shadow: none;
&::before {
content: none;
}
`;

export const borderless = css`