-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Defend Workflows][Eui Visual Refresh] Removed transparentize usage in responder #208457
Changes from 6 commits
1e083e8
cfa9181
7daed75
ce7da2f
8e71cfe
14ef44f
b10dee5
5f92ba8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ import { | |
EuiFlexItem, | ||
EuiButtonEmpty, | ||
} from '@elastic/eui'; | ||
import styled from 'styled-components'; | ||
import styled from '@emotion/styled'; | ||
import type { CriteriaConditionsProps } from './components/criteria_conditions'; | ||
import { CriteriaConditions } from './components/criteria_conditions'; | ||
import type { AnyArtifact } from './types'; | ||
|
@@ -29,12 +29,12 @@ import type { ArtifactEntryCardDecoratorProps } from './artifact_entry_card'; | |
|
||
const CardContainerPanel = styled(EuiSplitPanel.Outer)` | ||
&.artifactEntryCardMinified + &.artifactEntryCardMinified { | ||
margin-top: ${({ theme }) => theme.eui.euiSizeL}; | ||
margin-top: ${({ theme }) => theme.euiTheme.size.l}; | ||
} | ||
`; | ||
|
||
const CustomSplitInnerPanel = styled(EuiSplitPanel.Inner)` | ||
background-color: ${({ theme }) => theme.eui.euiColorLightestShade} !important; | ||
background-color: ${({ theme }) => theme.euiTheme.colors.lightestShade} !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is |
||
`; | ||
|
||
export interface ArtifactEntryCardMinifiedProps extends CommonProps { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,17 @@ | |
*/ | ||
|
||
import React, { memo } from 'react'; | ||
import styled from 'styled-components'; | ||
import { EuiFlexItem, transparentize } from '@elastic/eui'; | ||
import styled from '@emotion/styled'; | ||
import { EuiFlexItem } from '@elastic/eui'; | ||
import { SidePanelContentManager } from './side_panel_content_manager'; | ||
import { useWithSidePanel } from '../../hooks/state_selectors/use_with_side_panel'; | ||
|
||
const StyledEuiFlexItemWhite = styled(EuiFlexItem)` | ||
background-color: ${({ theme: { eui } }) => eui.euiColorEmptyShade} !important; | ||
border-radius: ${({ theme: { eui } }) => `0 ${eui.euiSizeXS} ${eui.euiSizeXS} 0`}; | ||
box-shadow: 0 ${({ theme: { eui } }) => eui.euiSizeXS} ${({ theme: { eui } }) => eui.euiSizeXS} | ||
${({ theme: { eui } }) => transparentize(eui.euiShadowColor, 0.04)}; | ||
background-color: ${({ theme: { euiTheme } }) => euiTheme.colors.emptyShade} !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above, |
||
border-radius: ${({ theme: { euiTheme } }) => `0 ${euiTheme.size.xs} ${euiTheme.size.xs} 0`}; | ||
box-shadow: 0 ${({ theme: { euiTheme } }) => euiTheme.size.xs} | ||
${({ theme: { euiTheme } }) => euiTheme.size.xs} | ||
${({ theme: { euiTheme } }) => euiTheme.colors.borderBaseSubdued}; | ||
`; | ||
|
||
export const SidePanelFlexItem = memo((props) => { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like
lightestShade
is deprecated - since this PR already touches this line, do you think we can use another color here?