Skip to content

Commit

Permalink
fix(table): update table content font size
Browse files Browse the repository at this point in the history
  • Loading branch information
oyo authored Jun 6, 2024
2 parents ab0312b + 50d87bb commit ea546b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.20

- Update Font Size for Table Contents

## 3.0.19

- Add pre-commit hook with lint-staged and prettier
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@catena-x/portal-shared-components",
"version": "3.0.19",
"version": "3.0.20",
"description": "Catena-X Portal Shared Components",
"author": "Catena-X Contributors",
"license": "Apache-2.0",
Expand Down
3 changes: 3 additions & 0 deletions src/components/basic/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export interface TableProps extends DataGridProps {
sortOptions?: SortOptionsType[]
onSortClick?: (value: string) => void
alignCell?: string
fontSizeCell?: string
error?: {
status: number
}
Expand Down Expand Up @@ -113,6 +114,7 @@ export const Table = ({
sortOptions,
onSortClick,
alignCell = 'center',
fontSizeCell = '14px',
error,
reload,
autoFocus = true,
Expand Down Expand Up @@ -216,6 +218,7 @@ export const Table = ({
sx={{
'&.MuiDataGrid-root .MuiDataGrid-cell': {
alignItems: alignCell,
fontSize: fontSizeCell,
},
'&.MuiDataGrid-root .MuiDataGrid-columnHeader:focus, &.MuiDataGrid-root .MuiDataGrid-cell:focus, &.MuiDataGrid-root .MuiDataGrid-cell:focus-within':
{
Expand Down

0 comments on commit ea546b3

Please sign in to comment.