-
Notifications
You must be signed in to change notification settings - Fork 142
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
fix(surveys): fix textarea, and make it easier to query the survey question description in the DOM #1337
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +276 B (+0.02%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
@@ -23,7 +23,7 @@ export function QuestionHeader({ | |||
<div className="survey-question">{question}</div> | |||
{description && | |||
renderChildrenAsTextOrHtml({ | |||
component: h('div', { className: 'description' }), | |||
component: h('div', { className: 'survey-question-description' }), |
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.
makes our survey question descriptions easier to query in the DOM, see: PostHog/posthog#24143
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.
Ship it
Changes
Our textarea looked super bad, not sure if it's always been like that but I hate what it looks like now. Reported here: https://posthog.slack.com/archives/C074A08LP1B/p1722508627577449
Before:
After:
In addition to that change, I also fixed our survey question description selectors. This will help make our survey visual regression tests less flaky. Those changes ship with the posthog changes here:
Checklist