diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx index 712c7c77fa957..1c51fca060c0f 100644 --- a/frontend/src/lib/constants.tsx +++ b/frontend/src/lib/constants.tsx @@ -177,6 +177,7 @@ export const FEATURE_FLAGS = { MULTI_PROJECT_FEATURE_FLAGS: 'multi-project-feature-flags', // owner: @jurajmajerik #team-feature-success NETWORK_PAYLOAD_CAPTURE: 'network-payload-capture', // owner: #team-monitoring INSIGHT_HORIZONTAL_CONTROLS: 'insight-horizontal-controls', // owner: @benjackwhite + SURVEYS_OPEN_CHOICE: 'surveys-open-choice', // owner: @ssoonmi, #team-feature-success } as const export type FeatureFlagKey = (typeof FEATURE_FLAGS)[keyof typeof FEATURE_FLAGS] diff --git a/frontend/src/scenes/surveys/EditSurvey.scss b/frontend/src/scenes/surveys/EditSurvey.scss index 6348a88b03259..67fe48acdefa9 100644 --- a/frontend/src/scenes/surveys/EditSurvey.scss +++ b/frontend/src/scenes/surveys/EditSurvey.scss @@ -13,6 +13,6 @@ bottom: -5px; left: 6px; font-size: 10px; - background-color: white; - padding: 0px 5px; + background-color: var(--bg-3000); + padding: 0 5px; } diff --git a/frontend/src/scenes/surveys/SurveyEdit.tsx b/frontend/src/scenes/surveys/SurveyEdit.tsx index 0c57e650be62c..e568fa7242305 100644 --- a/frontend/src/scenes/surveys/SurveyEdit.tsx +++ b/frontend/src/scenes/surveys/SurveyEdit.tsx @@ -583,42 +583,46 @@ export default function SurveyEdit(): JSX.Element { > Add choice - {!hasOpenChoice && ( - - } - type="secondary" - fullWidth={ - false - } - onClick={() => { - if ( - !value - ) { - onChange( - [ - 'Other', - ] - ) - } else { - onChange( - [ - ...value, - 'Other', - ] - ) + {featureFlags[ + FEATURE_FLAGS + .SURVEYS_OPEN_CHOICE + ] && + !hasOpenChoice && ( + } - toggleHasOpenChoice( - true - ) - }} - > - Add - open-ended - choice - - )} + type="secondary" + fullWidth={ + false + } + onClick={() => { + if ( + !value + ) { + onChange( + [ + 'Other', + ] + ) + } else { + onChange( + [ + ...value, + 'Other', + ] + ) + } + toggleHasOpenChoice( + true + ) + }} + > + Add + open-ended + choice + + )} )}