PostHog / PostHog/posthog

Default survey styling is ignored when creating new surveys

Open
#48,281 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug team/conversations
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Bug Description

When setting a default styling in the project settings for a survey, this is completely ignored when creating a new one. The surveys shown on the website itself also do not inherit the styling set in the settings.

For example, settings:

Image

Creating a new survey:

Image Image

In our website:
Image

As you can see, the red background is completely ignored.

How to reproduce

  1. Go to Project Settings --> Surveys
  2. Change the default appearance/styling
  3. Hit save
  4. Go to Surveys
  5. Create a new one
  6. See that default appearance set in settings is ignored

Additional context

Debug info
Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/019c6ffc-58f2-7eac-80b9-a93318454aa8?t=4898
Admin: http://go/adminOrgEU/0199bec0-54a1-0000-a764-b2a8f496e2c7 (project ID 101270)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Project Settings → Surveys and follow the new-survey creation flow, then compare it with the public survey view. Trace where the configured default appearance is saved and where each flow loads styling. Done means a newly created survey and its website presentation inherit the saved default appearance, with regression coverage for both paths.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.