Skip to content

Commit

Permalink
MDE/PKFE-5 changed background color change to text color change
Browse files Browse the repository at this point in the history
  • Loading branch information
mantvydasdeltuva committed Aug 22, 2024
1 parent e0d098d commit 82098b3
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,13 @@ export const ConsoleGroupItem = React.forwardRef<HTMLDivElement, ConsoleGroupIte
px: '0.625rem',
py: '0.25rem',
color:
(index === length - 1 && feedback.type === ConsoleFeedbackTypes.INFO) ||
feedback.type === ConsoleFeedbackTypes.ERROR ||
feedback.type === ConsoleFeedbackTypes.WARNING
? Theme.palette.text.primary
: Theme.palette.text.secondary,
bgcolor:
feedback.type === ConsoleFeedbackTypes.ERROR
? Theme.palette.error.main
: feedback.type === ConsoleFeedbackTypes.WARNING
? Theme.palette.warning.main
: 'none',
: index === length - 1 && feedback.type === ConsoleFeedbackTypes.INFO
? Theme.palette.text.primary
: Theme.palette.text.secondary,
}}
>
[{feedback.timestamp}] - [{feedback.type.toUpperCase()}] - {feedback.message}
Expand Down

0 comments on commit 82098b3

Please sign in to comment.