Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix message highlight color #39346

Merged
merged 9 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ function ReportActionItem({
const reportScrollManager = useReportScrollManager();

const highlightedBackgroundColorIfNeeded = useMemo(
() => (isReportActionLinked ? StyleUtils.getBackgroundColorStyle(theme.hoverComponentBG) : {}),
[StyleUtils, isReportActionLinked, theme.hoverComponentBG],
() => (isReportActionLinked ? StyleUtils.getBackgroundColorStyle(theme.messageHighlight) : {}),
[StyleUtils, isReportActionLinked, theme.messageHighlight],
);

const isDeletedParentAction = ReportActionsUtils.isDeletedParentAction(action);
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const colors: Record<string, Color> = {
productDark700: '#8B9C8F',
productDark800: '#AFBBB0',
productDark900: '#E7ECE9',
messageHightlightDark: '#402B02',
nkdengineer marked this conversation as resolved.
Show resolved Hide resolved

// Light Mode Theme Colors
productLight100: '#FCFBF9',
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const darkTheme = {
shadow: colors.black,
componentBG: colors.productDark100,
hoverComponentBG: colors.productDark300,
messageHighlight: colors.messageHightlightDark,
nkdengineer marked this conversation as resolved.
Show resolved Hide resolved
activeComponentBG: colors.productDark400,
signInSidebar: colors.green800,
sidebar: colors.productDark100,
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const lightTheme = {
inverse: colors.productLight900,
shadow: colors.black,
componentBG: colors.productLight100,
messageHighlight: colors.yellow100,
hoverComponentBG: colors.productLight300,
activeComponentBG: colors.productLight400,
signInSidebar: colors.green800,
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type ThemeColors = {
appBG: Color;
splashBG: Color;
highlightBG: Color;
messageHighlight: Color;
border: Color;
borderLighter: Color;
borderFocus: Color;
Expand Down
Loading