Skip to content

Commit

Permalink
fix contrast issues in Search Profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
VriaA committed Jan 22, 2025
1 parent 4146dd6 commit be60fe3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React from 'react';
import { EuiBasicTable, EuiToolTip, EuiBadge } from '@elastic/eui';
import { EuiBasicTable, EuiToolTip, EuiBadge, useEuiTheme } from '@elastic/eui';

import { BreakdownItem } from '../../types';
import { nsToPretty } from '../../lib';
Expand All @@ -17,6 +17,7 @@ interface Props {
}

export const HighlightDetailsTable = ({ breakdown }: Props) => {
const { euiTheme } = useEuiTheme();
const columns = [
{
name: 'Description',
Expand All @@ -29,7 +30,7 @@ export const HighlightDetailsTable = ({ breakdown }: Props) => {
{
name: 'Time',
render: (item: BreakdownItem) => (
<EuiBadge style={{ backgroundColor: item.color }}>
<EuiBadge style={{ backgroundColor: item.color, color: euiTheme.colors.plainDark }}>
<span>{item.key.endsWith('_count') ? item.time : nsToPretty(item.time, 1)}</span>
</EuiBadge>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
flex-shrink: 0;
}
}

.prfDevTool__shardDetails--dim .prfDevTool__progressText {
color: $euiColorPlainDark;
}

0 comments on commit be60fe3

Please sign in to comment.