Skip to content

fix: survey scroll - move padding from scroll container to form content#322329

Merged
digitarald merged 2 commits into
mainfrom
digitarald/fix-survey-scroll
Jun 22, 2026
Merged

fix: survey scroll - move padding from scroll container to form content#322329
digitarald merged 2 commits into
mainfrom
digitarald/fix-survey-scroll

Conversation

@digitarald

@digitarald digitarald commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Follow-up fixes for the in-editor PMF survey (#322192).

Changes

  • Fix scroll clipping: Move padding from the scroll container (.survey-editor-pane) to the content child (.survey-form). Bottom padding on a flex container with overflow: auto is not reliably included in the scrollable area — this is the root cause of the repeatedly-broken submit button visibility.

  • Only Q1 required: Submit button enables as soon as the PMF score (Q1) is answered. Q2–Q4 are optional — unanswered fields emit defaults in telemetry. Added required property to the question schema.

  • Optional annotations: Questions 2–4 show (optional) in the label text.

  • Escape option labels: Renamed from "Something else" to "None of the above" for Q2 and Q3.

  • a11y alignment: aria-required only set on required question groups. Updated hint text and accessible help dialog.

Copilot AI review requested due to automatic review settings June 22, 2026 06:50
@digitarald digitarald marked this pull request as ready for review June 22, 2026 06:51
@digitarald digitarald self-assigned this Jun 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the “clipped submit button” issue in the Surveys editor pane by ensuring the bottom spacing is part of the scrollable content, avoiding the known flex + scroll-container padding inconsistency across browsers.

Changes:

  • Change the scroll container to use overflow-y: auto (vertical scrolling explicitly).
  • Move the padding: 40px 20px 80px from .survey-editor-pane (scroll container) to .survey-form (scroll content), so the padding reliably contributes to scroll extent.
Show a summary per file
File Description
src/vs/workbench/contrib/surveys/browser/media/surveyEditorPane.css Moves padding to the scroll content element to make bottom spacing reliably scrollable and avoid submit button clipping.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@digitarald digitarald force-pushed the digitarald/fix-survey-scroll branch 3 times, most recently from 4354f29 to 64de92b Compare June 22, 2026 06:59
- Move padding from scroll container to .survey-form child to
  permanently fix clipped submit button (flex+overflow CSS issue)
- Only Q1 (disappointment score) is required for submission;
  Q2-Q4 are optional. Submit enables as soon as Q1 is answered.
- Add italic '(optional)' annotation after Q2-Q4 question labels
- aria-required only set on required question groups
- Rename escape options from 'Something else' to 'None of the above'
- Updated hint text and a11y help to reflect optional questions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@digitarald digitarald force-pushed the digitarald/fix-survey-scroll branch from 64de92b to f7c4839 Compare June 22, 2026 06:59
@digitarald digitarald merged commit 2726471 into main Jun 22, 2026
28 checks passed
@digitarald digitarald deleted the digitarald/fix-survey-scroll branch June 22, 2026 14:51
@vs-code-engineering vs-code-engineering Bot added this to the 1.127.0 milestone Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants