-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow changing the font family for surveys #27292
Conversation
Size Change: -92 B (-0.01%) Total Size: 1.12 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated64 snapshot changes in total. 0 added, 64 modified, 0 deleted:
Triggered by this commit. |
4212e3f
to
6c1c9f8
Compare
} | ||
onChange={(placeholder) => onAppearanceChange({ ...appearance, placeholder })} | ||
disabled={!surveysStylingAvailable} | ||
/> | ||
</LemonField.Pure> | ||
</> | ||
<LemonField.Pure className="mt-2" label="Placeholder text"> | ||
<LemonInput | ||
value={ | ||
appearance?.placeholder !== undefined | ||
? appearance.placeholder | ||
: defaultSurveyAppearance.placeholder | ||
} | ||
onChange={(placeholder) => onAppearanceChange({ ...appearance, placeholder })} | ||
disabled={!surveysStylingAvailable} | ||
/> | ||
</LemonField.Pure> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes here are just to remove the unneeded fragment
Exciting! A few pieces of feedback:
|
📸 UI snapshots have been updated64 snapshot changes in total. 0 added, 64 modified, 0 deleted:
Triggered by this commit. |
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
adf1772
to
931e1fa
Compare
📸 UI snapshots have been updated22 snapshot changes in total. 0 added, 22 modified, 0 deleted:
Triggered by this commit. |
931e1fa
to
8f17bab
Compare
{customizePlaceholderText && ( | ||
<> | ||
<LemonField.Pure className="mt-2" label="Placeholder text"> | ||
<LemonInput | ||
value={ | ||
appearance?.placeholder !== undefined | ||
? appearance.placeholder | ||
: defaultSurveyAppearance.placeholder | ||
<LemonField.Pure className="mt-2" label="Placeholder text"> | ||
<LemonInput | ||
value={ | ||
appearance?.placeholder !== undefined | ||
? appearance.placeholder | ||
: defaultSurveyAppearance.placeholder | ||
} | ||
onChange={(placeholder) => onAppearanceChange({ ...appearance, placeholder })} | ||
disabled={!surveysStylingAvailable} | ||
/> | ||
</LemonField.Pure> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no changes here, just removing the unneeded fragment
📸 UI snapshots have been updated77 snapshot changes in total. 0 added, 77 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated4 snapshot changes in total. 0 added, 4 modified, 0 deleted:
Triggered by this commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
Problem
Feature request: #25338
Adds a new appearance property to surveys: font family.
For this current version, we allow to change for the default web fonts.
Releasing behind a feature flag, which is only enabled for PostHog internal use atm.
Changes
CleanShot.2025-01-06.at.18.11.44.mp4
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
Verified on localhost and on the surveyPreview that the fonts are matching