Add tnum property to tables (#20093)

This commit is contained in:
Geido 2022-05-18 16:26:29 +02:00 committed by GitHub
parent 27cccd105b
commit 1fe30f1f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 0 deletions

View File

@ -59,6 +59,10 @@ const StyledDiv = styled.div`
margin-left: ${theme.gridUnit}px; margin-left: ${theme.gridUnit}px;
} }
.reactable-data tr {
font-feature-settings: 'tnum' 1;
}
.reactable-data tr, .reactable-data tr,
.reactable-header-sortable { .reactable-header-sortable {
-webkit-transition: ease-in-out 0.1s; -webkit-transition: ease-in-out 0.1s;

View File

@ -36,6 +36,10 @@ export const Styles = styled.div`
top: 0; top: 0;
} }
table tbody tr {
font-feature-settings: 'tnum' 1;
}
table.pvtTable thead tr th, table.pvtTable thead tr th,
table.pvtTable tbody tr th { table.pvtTable tbody tr th {
background-color: ${theme.colors.grayscale.light5}; background-color: ${theme.colors.grayscale.light5};

View File

@ -105,6 +105,10 @@ const Styles = styled.div`
.slice_container { .slice_container {
height: ${p => p.height}px; height: ${p => p.height}px;
.pivot_table tbody tr {
font-feature-settings: 'tnum' 1;
}
} }
`; `;

View File

@ -172,6 +172,7 @@ export const Table = styled.table`
} }
.table-cell { .table-cell {
font-feature-settings: 'tnum' 1;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
max-width: 320px; max-width: 320px;