From 0218130e10091576d38de89275e324e243ed4e13 Mon Sep 17 00:00:00 2001 From: Linus Pahl Date: Tue, 23 Apr 2024 10:05:54 +0200 Subject: [PATCH] Fixing "unknown format" error on sidecar overview page `6.0`. (#19129) * Fixing "unknown format" error on sidecar overview page. * Adding changelog. * Make sure to not provide `transparent` value for `contrastingColor` because it is invalid. * Use previous opacity. --- changelog/unreleased/issue-19012.toml | 5 +++++ .../src/components/sidecars/sidecars/SidecarRow.jsx | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 changelog/unreleased/issue-19012.toml diff --git a/changelog/unreleased/issue-19012.toml b/changelog/unreleased/issue-19012.toml new file mode 100644 index 000000000000..00cd844e8119 --- /dev/null +++ b/changelog/unreleased/issue-19012.toml @@ -0,0 +1,5 @@ +type = "fixed" +message = "Fixing 'unknown format' error on sidecar overview page." + +issues = ["19012"] +pulls = ["19128"] diff --git a/graylog2-web-interface/src/components/sidecars/sidecars/SidecarRow.jsx b/graylog2-web-interface/src/components/sidecars/sidecars/SidecarRow.jsx index 4d5eb757ad73..16c7db76ddcf 100644 --- a/graylog2-web-interface/src/components/sidecars/sidecars/SidecarRow.jsx +++ b/graylog2-web-interface/src/components/sidecars/sidecars/SidecarRow.jsx @@ -30,13 +30,9 @@ import recentMessagesTimeRange from 'util/TimeRangeHelper'; import style from './SidecarRow.css'; const SidecarTR = styled.tr(({ inactive, theme }) => css` - color: ${inactive ? theme.utils.contrastingColor(theme.colors.table.background, 'AA') : 'currentColor'}; + color: ${inactive ? theme.utils.contrastingColor(theme.colors.global.contentBackground, 'AA') : 'currentColor'}; opacity: ${inactive ? 0.9 : 1}; - &:nth-of-type(2n+1) { - color: ${inactive ? theme.utils.contrastingColor(theme.colors.table.backgroundAlt, 'AA') : 'currentColor'}; - } - td:not(:last-child) { font-style: ${inactive ? 'italic' : 'normal'}; }