Skip to content

Commit

Permalink
Add tnum property to tables (#20093)
Browse files Browse the repository at this point in the history
  • Loading branch information
geido authored May 18, 2022
1 parent 27cccd1 commit 1fe30f1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const StyledDiv = styled.div`
margin-left: ${theme.gridUnit}px;
}
.reactable-data tr {
font-feature-settings: 'tnum' 1;
}
.reactable-data tr,
.reactable-header-sortable {
-webkit-transition: ease-in-out 0.1s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export const Styles = styled.div`
top: 0;
}
table tbody tr {
font-feature-settings: 'tnum' 1;
}
table.pvtTable thead tr th,
table.pvtTable tbody tr th {
background-color: ${theme.colors.grayscale.light5};
Expand Down
4 changes: 4 additions & 0 deletions superset-frontend/src/components/Chart/Chart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ const Styles = styled.div`
.slice_container {
height: ${p => p.height}px;
.pivot_table tbody tr {
font-feature-settings: 'tnum' 1;
}
}
`;

Expand Down
1 change: 1 addition & 0 deletions superset-frontend/src/components/TableCollection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export const Table = styled.table`
}
.table-cell {
font-feature-settings: 'tnum' 1;
text-overflow: ellipsis;
overflow: hidden;
max-width: 320px;
Expand Down

0 comments on commit 1fe30f1

Please sign in to comment.