Skip to content

Commit 702c95b

Browse files
committed
Fix high-contrast issues on selected rows in the View list
1 parent 3f36457 commit 702c95b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/components/view/view-event-list.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { action, computed } from 'mobx';
66
import AutoSizer from 'react-virtualized-auto-sizer';
77
import { FixedSizeList as List, ListChildComponentProps } from 'react-window';
88

9-
import { styled } from '../../styles'
9+
import { css, highContrastTheme, styled } from '../../styles'
1010
import { ArrowIcon, Icon, WarningIcon } from '../../icons';
1111

1212
import {
@@ -231,7 +231,16 @@ const EventListRow = styled.div`
231231
232232
&.selected {
233233
background-color: ${p => p.theme.highlightBackground};
234+
color: ${p => p.theme.highlightColor};
234235
font-weight: bold;
236+
237+
${(p): any => p.theme === highContrastTheme &&
238+
css`
239+
${StatusCode} {
240+
color: ${p => p.theme.highlightColor};
241+
}
242+
`
243+
}
235244
}
236245
237246
&:focus {

0 commit comments

Comments
 (0)