Skip to content

Commit

Permalink
Merge pull request #39346 from nkdengineer/fix/38851
Browse files Browse the repository at this point in the history
fix message highlight color
  • Loading branch information
roryabraham authored Apr 3, 2024
2 parents 7cdb17b + 6743c61 commit 7d5dbf6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
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.messageHighlightBG) : {}),
[StyleUtils, isReportActionLinked, theme.messageHighlightBG],
);

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',
messageHighlightDark: '#402B02',

// 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,
messageHighlightBG: colors.messageHighlightDark,
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,
messageHighlightBG: 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;
messageHighlightBG: Color;
border: Color;
borderLighter: Color;
borderFocus: Color;
Expand Down

0 comments on commit 7d5dbf6

Please sign in to comment.