Skip to content

Commit 8bfd088

Browse files
committed
feat: migrate to primer design tokens
Signed-off-by: Adam Setch <[email protected]>
1 parent 2e75a01 commit 8bfd088

File tree

13 files changed

+328
-326
lines changed

13 files changed

+328
-326
lines changed

src/renderer/components/buttons/PillButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const PillButton: FC<IPillButton> = (props: IPillButton) => {
1818
<button
1919
title={props.title}
2020
type="button"
21-
className="flex gap-1 items-center text-xxs px-1 m-0.5 rounded-full bg-gitify-pill-rest hover:bg-gitify-pill-hover"
21+
className="flex gap-1 items-center text-xxs px-1 m-0.5 rounded-full bg-gitify-notification-pill-rest hover:bg-gitify-notification-pill-hover"
2222
>
2323
<Stack direction="horizontal" align="center" gap="condensed">
2424
<props.icon size={Size.XSMALL} className={props.color} />

src/renderer/components/buttons/__snapshots__/PillButton.test.tsx.snap

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

src/renderer/components/notifications/AccountNotifications.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ export const AccountNotifications: FC<IAccountNotifications> = (
7171
<div
7272
className={cn(
7373
'group flex items-center justify-between pr-1 py-0.5 text-sm font-semibold dark:text-white',
74-
props.error
75-
? 'bg-gitify-accounts-error'
76-
: 'bg-gitify-accounts-rest',
74+
props.error ? 'bg-gitify-account-error' : 'bg-gitify-account-rest',
7775
)}
7876
onClick={toggleAccountNotifications}
7977
>

src/renderer/components/notifications/NotificationRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const NotificationRow: FC<INotificationRow> = ({
8888
<div
8989
id={notification.id}
9090
className={cn(
91-
'group flex border-b pl-3 pr-1 py-1.5 text-gitify-font border-gitify-notifications-border bg-gitify-notifications-rest hover:bg-gitify-notifications-hover',
91+
'group flex border-b pl-3 pr-1 py-1.5 text-gitify-font border-gitify-notification-border bg-gitify-notification-rest hover:bg-gitify-notification-hover',
9292
(isAnimated || animateExit) &&
9393
'translate-x-full opacity-0 transition duration-[350ms] ease-in-out',
9494
(isRead || showAsRead) && Opacity.READ,

src/renderer/components/notifications/RepositoryNotifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const RepositoryNotifications: FC<IRepositoryNotifications> = ({
4343
return (
4444
<>
4545
<div
46-
className="group flex justify-between pr-1 py-0.5 bg-gitify-repositories dark:text-white"
46+
className="group flex justify-between pr-1 py-0.5 bg-gitify-repository dark:text-white"
4747
onClick={toggleRepositoryNotifications}
4848
>
4949
<div

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

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

0 commit comments

Comments
 (0)