Skip to content

Commit

Permalink
Fixing "unknown format" error on sidecar overview page. (#19128)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
linuspahl committed Apr 22, 2024
1 parent f064e76 commit 16bdf04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/issue-19012.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type = "fixed"
message = "Fixing 'unknown format' error on sidecar overview page."

issues = ["19012"]
pulls = ["19128"]
Original file line number Diff line number Diff line change
Expand Up @@ -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'};
}
Expand Down

0 comments on commit 16bdf04

Please sign in to comment.