Skip to content

Commit

Permalink
fix hover color
Browse files Browse the repository at this point in the history
  • Loading branch information
dragnoir committed May 16, 2024
1 parent 55bf6a5 commit 74618df
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useMarkdownStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function useMarkdownStyle(message: string | null = null, excludeStyles: Array<ke
fontSize: emojiFontSize,
},
blockquote: {
borderLeftColor: theme.borderDarker,
borderColor: theme.border,
borderWidth: 4,
marginLeft: 0,
paddingLeft: 6,
Expand Down
4 changes: 2 additions & 2 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const webViewStyles = (theme: ThemeColors) =>
},

blockquote: {
borderLeftColor: theme.borderDarker,
borderLeftColor: theme.border,
borderLeftWidth: 4,
paddingLeft: 12,
marginTop: 4,
Expand Down Expand Up @@ -3228,7 +3228,7 @@ const styles = (theme: ThemeColors) =>
},

blockquote: {
borderLeftColor: theme.borderDarker,
borderLeftColor: theme.border,
borderLeftWidth: 4,
paddingLeft: 12,
marginVertical: 4,
Expand Down
1 change: 0 additions & 1 deletion src/styles/theme/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const darkTheme = {
highlightBG: colors.productDark200,
border: colors.productDark400,
borderLighter: colors.productDark400,
borderDarker: colors.productDark500,
borderFocus: colors.green400,
icon: colors.productDark700,
iconMenu: colors.green400,
Expand Down
1 change: 0 additions & 1 deletion src/styles/theme/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const lightTheme = {
highlightBG: colors.productLight200,
border: colors.productLight400,
borderLighter: colors.productLight400,
borderDarker: colors.productLight500,
borderFocus: colors.green400,
icon: colors.productLight700,
iconMenu: colors.green400,
Expand Down
1 change: 0 additions & 1 deletion src/styles/theme/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ type ThemeColors = {
messageHighlightBG: Color;
border: Color;
borderLighter: Color;
borderDarker: Color;
borderFocus: Color;
icon: Color;
iconMenu: Color;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ const createStyleUtils = (theme: ThemeColors, styles: ThemeStyles) => ({
case CONST.BUTTON_STATES.PRESSED:
return {backgroundColor: theme.buttonPressedBG};
case CONST.BUTTON_STATES.ACTIVE:
return isMenuItem ? {backgroundColor: theme.border} : {backgroundColor: theme.buttonHoveredBG};
return isMenuItem ? {backgroundColor: theme.hoverComponentBG} : {backgroundColor: theme.buttonHoveredBG};
case CONST.BUTTON_STATES.DISABLED:
case CONST.BUTTON_STATES.DEFAULT:
default:
Expand Down

0 comments on commit 74618df

Please sign in to comment.