Skip to content

Commit 48af1d1

Browse files
authored
fix: adding layout to the compose styles (#233)
1 parent 70c6ef9 commit 48af1d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Table/components/TableCell.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { ComponentPropsWithoutRef, FC, useContext } from 'react';
22
import styled from 'styled-components';
3-
import { compose, LayoutProps, textAlign, TextAlignProps } from 'styled-system';
3+
import { compose, LayoutProps, textAlign, TextAlignProps, layout } from 'styled-system';
44
import { TableContext } from '../context/TableContext';
55
import { TableProps } from './Table';
66

@@ -23,7 +23,7 @@ const TableCellElement = styled.td<TableCellProps>`
2323
padding-right: ${p => p.columnSpace};
2424
}
2525
26-
${compose(textAlign)}
26+
${compose(textAlign, layout)}
2727
`;
2828

2929
const TableCell: FC<TableCellProps> = (props: TableCellProps) => {

src/components/Table/components/TableHeaderCell.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { ComponentPropsWithoutRef, FC, useContext } from 'react';
22
import styled from 'styled-components';
3-
import { compose, LayoutProps, textAlign, TextAlignProps } from 'styled-system';
3+
import { compose, LayoutProps, textAlign, TextAlignProps, layout } from 'styled-system';
44
import { Colors } from '../../../essentials';
55
import { theme } from '../../../essentials/theme';
66
import { get } from '../../../utils/themeGet';
@@ -29,7 +29,7 @@ const TableHeaderCellElement = styled.th.attrs({ theme })<TableHeaderCellProps>`
2929
padding-right: ${p => p.columnSpace};
3030
}
3131
32-
${compose(textAlign)}
32+
${compose(textAlign, layout)}
3333
`;
3434

3535
const TableHeaderCell: FC<TableHeaderCellProps> = (props: TableHeaderCellProps) => {

0 commit comments

Comments
 (0)