Skip to content

Commit

Permalink
[EuiDataGrid][Cloud Security] Update custom CSS vertical alignment to…
Browse files Browse the repository at this point in the history
… account for new cell DOM
  • Loading branch information
cee-chen committed Dec 20, 2023
1 parent aee0758 commit 16ff1ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ export const useStyles = () => {
& .euiDataGridRowCell {
font-size: ${euiTheme.size.m};
}
& .euiDataGridRowCell__expandFlex {
// Vertically center content
display: flex;
align-items: center;
// Stretch content to full-width
.euiDataGridRowCell__content {
flex-grow: 1;
}
}
& .euiDataGridRowCell.euiDataGridRowCell--numeric {
text-align: left;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,19 @@ export const useStyles = () => {
}
& .euiDataGridRowCell {
font-size: ${euiTheme.size.m};
// Vertically center content
display: flex;
align-items: center;
// Stretch content to full-width
.euiDataGridRowCell__content {
flex-grow: 1;
}
}
/* EUI QUESTION: Why is this being done via CSS instead of setting isExpandable: false in the columns API? */
& .euiDataGridRowCell__actions > .euiDataGridRowCell__expandCell {
display: none;
}
& .euiDataGridRowCell__contentWrapper {
display: flex;
align-items: center;
}
& .euiDataGridRowCell.euiDataGridRowCell--numeric {
text-align: left;
}
Expand Down

0 comments on commit 16ff1ba

Please sign in to comment.