Skip to content

Commit

Permalink
[Security Solution][THI] - replace deprecated EUI color variables (#2…
Browse files Browse the repository at this point in the history
…05173)

## Summary

This PR is part of a list of PRs to perform the changes necessary to get
the new Borealis theme working correctly. It focuses on replacing the
deprecated color variables with the new ones:

#### previous color token -> new color token:
- primaryText -> textPrimary
- accentText -> textAccent
- warningText -> textWarning
- dangerText -> textDanger
- text -> textParagraph
- title -> textHeading
- subduedText -> textSubdued
- disabledText -> textDisabled

No UI changes are visible.

#201881
  • Loading branch information
PhilippeOberti authored Jan 10, 2025
1 parent 481b803 commit f833b18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const useComparisonCss = ({
.${CELL_CLASS} {
&,
& * {
color: ${euiTheme.colors.successText} !important;
color: ${euiTheme.colors.textSuccess} !important;
}
}
}
Expand All @@ -70,7 +70,7 @@ export const useComparisonCss = ({
.${CELL_CLASS} {
&,
& * {
color: ${euiTheme.colors.dangerText} !important;
color: ${euiTheme.colors.textDanger} !important;
}
}
}
Expand All @@ -82,12 +82,12 @@ export const useComparisonCss = ({
.${ADDED_SEGMENT_CLASS} {
background-color: ${matchSegmentBackgroundColor};
color: ${euiTheme.colors.successText};
color: ${euiTheme.colors.textSuccess};
}
.${REMOVED_SEGMENT_CLASS} {
background-color: ${diffSegmentBackgroundColor};
color: ${euiTheme.colors.dangerText};
color: ${euiTheme.colors.textDanger};
}
${(diffMode === 'chars' || diffMode === 'words') &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ export const FlyoutTitle: FC<FlyoutTitleProps> = memo(
const titleComponent = useMemo(() => {
return (
<EuiTitle size="s" data-test-subj={`${dataTestSubj}Text`}>
<EuiTextColor color={isLink ? euiTheme.colors.primaryText : undefined}>
<EuiTextColor color={isLink ? euiTheme.colors.textPrimary : undefined}>
<span>{title}</span>
</EuiTextColor>
</EuiTitle>
);
}, [dataTestSubj, title, isLink, euiTheme.colors.primaryText]);
}, [dataTestSubj, title, isLink, euiTheme.colors.textPrimary]);

const linkIcon = useMemo(() => {
return (
Expand Down

0 comments on commit f833b18

Please sign in to comment.