Skip to content

Commit 18cb2bf

Browse files
fix(profile): keep edit-name pencil static white for dark mode (#14302)
## Summary - The edit-name pencil on the profile page used Harmony's `white` icon color, which is theme-aware and flips to near-black in dark mode — making the icon hard to see against the cover photo. - Switch to `staticWhite` so the pencil stays white in both themes. ## Test plan - [ ] In light mode, the pencil icon next to your display name still renders correctly over the cover photo. - [ ] In dark mode, the pencil icon is now clearly visible (white instead of near-black). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 9ca80fe commit 18cb2bf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/web/src/components/profile-picture/ProfilePicture.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const ProfilePicture = ({
116116
</Image>
117117
{editMode || showEdit ? (
118118
<ImageSelectionButton
119-
className={styles.imageSelectionButtonWrapper}
119+
wrapperClassName={styles.imageSelectionButtonWrapper}
120120
buttonClassName={styles.imageSelectionButton}
121121
onSelect={onSelect}
122122
onClick={onClick}

packages/web/src/pages/profile-page/components/EditableName.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ export const EditableName = (props: EditableNameProps) => {
5151
<div className={styles.editNameContainer}>
5252
<span className={styles.editingName}>{name}</span>
5353
<IconButton
54-
css={{ marginBottom: spacing.s }}
54+
css={{ marginBottom: spacing.s, marginLeft: spacing.s }}
5555
aria-label={messages.editLabel}
5656
icon={IconPencil}
57-
color='white'
57+
color='staticWhite'
5858
onClick={() => setEditing(true)}
5959
shadow='drop'
6060
/>

0 commit comments

Comments
 (0)