-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses styled components instead of modify compontent style directly an…
…d small improvements on test -> ts
- Loading branch information
1 parent
0cc6766
commit 29014e8
Showing
5 changed files
with
61 additions
and
35 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
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
24 changes: 24 additions & 0 deletions
24
...st_manager_integration/endpoint_package_custom_extension/components/styled_components.tsx
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,24 @@ | ||
/* | ||
* 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; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
import styled from 'styled-components'; | ||
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; | ||
|
||
export const StyledEuiFlexGridGroup = styled(EuiFlexGroup)` | ||
display: grid; | ||
grid-template-columns: 25% 45% 30%; | ||
grid-template-areas: 'title summary link'; | ||
`; | ||
|
||
export const StyledEuiFlexGridItem = styled(EuiFlexItem)<{ | ||
gridArea: string; | ||
alignItems?: string; | ||
}>` | ||
grid-area: ${({ gridArea }) => gridArea}; | ||
align-items: ${({ alignItems }) => alignItems ?? 'center'}; | ||
margin: 0px; | ||
padding: 12px; | ||
`; |
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