Skip to content

Commit 4fbf1cd

Browse files
Nina Beniteninariccimarie
authored andcommitted
DataTable: use next DropShadow
1 parent b065577 commit 4fbf1cd

8 files changed

Lines changed: 3 additions & 8 deletions

File tree

src/@next/DataTable/DataTableStyle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from 'styled-components';
2-
import { Shadow } from '../../Utils/Shadow';
2+
import * as DropShadow from '../utilities/dropShadow';
33
import { borderRadius8 } from '../utilities/borderRadius';
44
import { Blue, Neutral } from '../utilities/colors';
55
import { space16 } from '../utilities/spacing';
@@ -141,5 +141,5 @@ export const StyledSpinnerContainer = styled.div`
141141
export const StyledDataTableContainer = styled.div`
142142
overflow-x: auto;
143143
scroll-behavior: smooth;
144-
box-shadow: ${Shadow.card};
144+
box-shadow: ${DropShadow.card};
145145
`;

src/@next/utilities/dropShadow/DropShadow.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export const deep = `0 0 0 1px rgba(6, 44, 82, 0.1),
77
export const button = '0 1px 0 rgba(0, 0, 0, 0.05)';
88
export const buttonFocused = '0px 0px 0px 2px rgba(106, 201, 236, 1)';
99
export const topBar = '0 2px 2px -1px rgba(0, 0, 0, 0.15)';
10-
export const card = `0 0 5px rgba(23, 24, 24, 0.05),
11-
0 1px 2px rgba(0, 0, 0, 0.15)`;
10+
export const card = `0px 1px 2px 0px rgb(71 71 71 / 20%), 0px 0px 5px 0px rgb(71 71 71 / 10%)`;
1211
export const popOver = `0 3px 6px -3px rgba(23, 24, 24, 0.08),
1312
0 8px 20px -4px rgba(23, 24, 24, 0.12)`;
1413
export const layer = `0 31px 41px 0 rgba(32, 42, 53, 0.2),

src/Utils/Shadow/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ const down3 = '0 6px 12px 0 rgba(0, 0, 0, 0.10)';
1010
const up4 = '0 -12px 24px 0 rgba(0, 0, 0, 0.10)';
1111
const down4 = '0 12px 24px 0 rgba(0, 0, 0, 0.10)';
1212

13-
const card =
14-
'0px 0px 5px rgba(71, 71, 71, 0.1), 0px 1px 2px rgba(71, 71, 71, 0.2)';
15-
1613
export const Shadow = {
1714
up1,
1815
down1,
@@ -22,7 +19,6 @@ export const Shadow = {
2219
down3,
2320
up4,
2421
down4,
25-
card,
2622
} as const;
2723

2824
export type ShadowValueType = typeof Shadow[keyof typeof Shadow];
2 Bytes
Loading
10 Bytes
Loading
4 Bytes
Loading
-3 Bytes
Loading
0 Bytes
Loading

0 commit comments

Comments
 (0)