Skip to content

Commit

Permalink
[Fleet][Eui Visual Refresh] Update text color tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
jillguyonnet committed Dec 17, 2024
1 parent b3124d7 commit b5de8bc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/public/applications/fleet/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const FleetTopNav = memo(

const readOnlyBtnClass = React.useMemo(() => {
return css`
color: ${euiTheme.colors.text};
color: ${euiTheme.colors.textParagraph};
`;
}, [euiTheme]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const IntegrationsHeader = ({
const { euiTheme } = useEuiTheme();
const readOnlyBtnClass = React.useMemo(() => {
return css`
color: ${euiTheme.colors.text};
color: ${euiTheme.colors.textParagraph};
`;
}, [euiTheme]);
const isReadOnly = useIsReadOnly();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,19 @@
* 2.0.
*/

import styled from 'styled-components';
import { EuiContextMenuItem } from '@elastic/eui';
import React from 'react';
import { css } from '@emotion/react';
import type { EuiContextMenuItemProps } from '@elastic/eui';
import { EuiContextMenuItem, useEuiTheme } from '@elastic/eui';

export const DangerEuiContextMenuItem = styled(EuiContextMenuItem)`
color: ${(props) => props.theme.eui.euiColorDangerText};
`;
export const DangerEuiContextMenuItem = (props: EuiContextMenuItemProps) => {
const theme = useEuiTheme();
return (
<EuiContextMenuItem
{...props}
css={css`
color: ${theme.euiTheme.colors.textDanger};
`}
/>
);
};

0 comments on commit b5de8bc

Please sign in to comment.