-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(surveys): added a customizable submit button text color #24170
Conversation
<LemonInput | ||
value={appearance?.placeholder || defaultSurveyAppearance.placeholder} | ||
onChange={(placeholder) => onAppearanceChange({ ...appearance, placeholder })} | ||
disabled={!surveysStylingAvailable} | ||
/> | ||
</> | ||
)} | ||
<div className="mt-2"> | ||
<div className="mt-4"> |
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.
{surveyQuestionItem.type === SurveyQuestionType.Open && ( | ||
<> | ||
<div className="mt-2">Placeholder</div> | ||
<div className="mt-2">Placeholder text</div> |
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.
imo this is clearer than just saying "Placeholder"
@@ -164,6 +164,7 @@ const surveyActionsMapping: Record< | |||
backgroundColor: 'background color', | |||
submitButtonColor: 'submit button color', | |||
submitButtonText: 'submit button text', | |||
submitButtonTextColor: 'submit button text color', |
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.
added to the activity log
@@ -32,6 +32,7 @@ export const SurveyUrlMatchTypeLabels = { | |||
export const defaultSurveyAppearance = { | |||
backgroundColor: '#eeeded', | |||
submitButtonColor: 'black', | |||
submitButtonTextColor: 'white', |
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.
default
Size Change: 0 B Total Size: 1.07 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 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.
Looks good, ship it
…om:PostHog/posthog into feat/modify-submit-button-text-for-surveys
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
…#24170) Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Hospitable asked for this, and it was super easy to do. Feels worth it.
Ships with the posthog-js changes here: PostHog/posthog-js#1339
Video demo: https://www.loom.com/share/07e3409daded4bf4908442286a88b009?sid=a7c6d250-bb82-4ce0-905c-cc89a7d20716