Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
fix dark mode follows you (#1863)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikki Kang <kangaroo233@gmail.com>
  • Loading branch information
nicoback2 and nicoback committed Sep 6, 2022
1 parent 3c2e178 commit 670e142
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/web/src/components/artist/ArtistChip.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@
color: var(--neutral-light-4);
}

.followersContainer .followsYou.darkMode {
box-shadow: none;
border: 1px solid var(--neutral-light-4);
color: var(--neutral-light-4);
background: none;
}

.tipContainer .rank {
margin-right: 24px;
}
Expand Down
6 changes: 5 additions & 1 deletion packages/web/src/components/artist/ArtistChipFollowers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import cn from 'classnames'

import { ReactComponent as IconUser } from 'assets/img/iconUser.svg'
import FollowsYouBadge from 'components/user-badges/FollowsYouBadge'
import { isDarkMode } from 'utils/theme/theme'

import styles from './ArtistChip.module.css'

Expand All @@ -19,6 +20,7 @@ export const ArtistChipFollowers = ({
followerCount,
doesFollowCurrentUser
}: ArtistChipFollowersProps) => {
const darkMode = isDarkMode()
return (
<div className={styles.followersContainer}>
<div className={cn(styles.followers, 'followers')}>
Expand All @@ -31,7 +33,9 @@ export const ArtistChipFollowers = ({
</span>
</div>
{doesFollowCurrentUser ? (
<FollowsYouBadge className={styles.followsYou} />
<FollowsYouBadge
className={cn(styles.followsYou, { [styles.darkMode]: darkMode })}
/>
) : null}
</div>
)
Expand Down

0 comments on commit 670e142

Please sign in to comment.