-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Emotion `css` prop actually requires `className` under the hood to merge classes
- Loading branch information
Showing
7 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +0,0 @@ | ||
.euiDataGrid__customRenderBody { | ||
@include euiScrollBar($euiColorDarkShade, $euiColorEmptyShade); | ||
height: 100%; | ||
width: 100%; | ||
overflow: auto; | ||
} | ||
|
||
.euiDataGrid__virtualized { | ||
@include euiScrollBar($euiColorDarkShade, $euiColorEmptyShade); | ||
scroll-padding: 0; | ||
} | ||
27 changes: 27 additions & 0 deletions
27
packages/eui/src/components/datagrid/body/data_grid_body.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { css } from '@emotion/react'; | ||
|
||
import { UseEuiTheme } from '../../../services'; | ||
import { euiScrollBarStyles, logicalSizeCSS } from '../../../global_styling'; | ||
|
||
export const euiDataGridBodyStyles = (euiThemeContext: UseEuiTheme) => { | ||
return { | ||
euiDataGridBody: css` | ||
${euiScrollBarStyles(euiThemeContext)} | ||
`, | ||
virtualized: css` | ||
scroll-padding: 0; | ||
`, | ||
customRender: css` | ||
${logicalSizeCSS('100%')} | ||
overflow: auto; | ||
`, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters