Skip to content

Commit 9624f16

Browse files
committed
fix: account error header
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent e80c449 commit 9624f16

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/renderer/components/notifications/AccountNotifications.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ export const AccountNotifications: FC<AccountNotificationsProps> = (
107107
/>
108108
</Button>
109109

110-
<HoverGroup bgColor="group-hover:bg-gitify-account-rest">
110+
<HoverGroup
111+
bgColor={
112+
props.error
113+
? 'group-hover:bg-gitify-account-error'
114+
: 'group-hover:bg-gitify-account-rest'
115+
}
116+
>
111117
<HoverButton
112118
action={() => openGitHubIssues(account.hostname)}
113119
icon={IssueOpenedIcon}

src/renderer/components/notifications/__snapshots__/AccountNotifications.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/components/primitives/HoverGroup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ interface HoverGroupProps {
88
children: ReactNode;
99
bgColor:
1010
| 'group-hover:bg-gitify-account-rest'
11+
| 'group-hover:bg-gitify-account-error'
1112
| 'group-hover:bg-gitify-repository'
1213
| 'group-hover:bg-gitify-notification-hover';
1314
}

tailwind.config.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const config: Config = {
5050

5151
account: {
5252
rest: 'var(--control-bgColor-active)',
53-
error: 'var(--bgColor-danger-emphasis)',
53+
error: 'var(--gitify-account-error-bg)',
5454
},
5555

5656
repository: 'var(--control-bgColor-disabled)',
@@ -77,6 +77,7 @@ const config: Config = {
7777
addBase({
7878
'[data-color-mode="light"]': {
7979
'--gitify-background': 'var(--bgColor-default)',
80+
'--gitify-account-error-bg': 'var(--bgColor-danger-muted)',
8081

8182
'--gitify-scrollbar-track': colors.gray[100],
8283
'--gitify-scrollbar-thumb': colors.gray[300],
@@ -88,6 +89,7 @@ const config: Config = {
8889
},
8990
'[data-color-mode="dark"]': {
9091
'--gitify-background': 'var(--bgColor-muted)',
92+
'--gitify-account-error-bg': 'var(--bgColor-danger-emphasis)',
9193

9294
'--gitify-scrollbar-track': colors.gray[900],
9395
'--gitify-scrollbar-thumb': colors.gray[700],

0 commit comments

Comments
 (0)