Fix feedback dialog focus ring clipping#394
Open
Farhan (fkb032) wants to merge 3 commits into
Open
Conversation
Contributor
🎨 Storybook previewUpdated for cf4e1fc ❌ Failed snapshots (2)These stories' HTML snapshots changed. Update snapshots ↗ to regenerate baselines and open a PR: Settings/AutoConfigField › ControlsSettings/AutoTuningSection › Evolution Settings |
Contributor
📋 PR Overview
🔬 Coverage
|
Contributor
Author
Juanpe Bolívar (arximboldi)
requested changes
Jun 20, 2026
Juanpe Bolívar (arximboldi)
left a comment
Contributor
There was a problem hiding this comment.
I tested it and it works, yay!
However:
- Storybooks seem broken
- A couple of small improvements could be done in the code
Comment on lines
+55
to
+57
| const FEEDBACK_DIALOG_BODY_CLASS = "space-y-6 flex-1 overflow-y-auto pl-1 py-1 pr-3"; | ||
| const FEEDBACK_SHARE_OPTIONS_CLASS = | ||
| "space-y-2 max-h-[28vh] overflow-y-auto pl-1 py-1 pr-2"; |
Contributor
There was a problem hiding this comment.
Extracting these vars out seems unnecessary, it doesn't hurt though.
Comment on lines
+19
to
+35
| describe("FeedbackDialog focus ring buffers", () => { | ||
| it("keeps focus-ring paint inside scrollable dialog containers", async () => { | ||
| useWidgetStore.getState().openFeedback(FeedbackType.Issue); | ||
|
|
||
| render(<FeedbackDialog />); | ||
|
|
||
| const textarea = await screen.findByLabelText("DESCRIBE WHAT HAPPENED"); | ||
| const dialogBody = textarea.closest(".overflow-y-auto"); | ||
|
|
||
| expect(dialogBody).toHaveClass("pl-1", "py-1", "pr-3"); | ||
|
|
||
| const shareCheckbox = screen.getByRole("checkbox", { name: "Current app state" }); | ||
| const shareOptions = shareCheckbox.closest(".overflow-y-auto"); | ||
|
|
||
| expect(shareOptions).toHaveClass("pl-1", "py-1", "pr-2"); | ||
| }); | ||
| }); |
Contributor
There was a problem hiding this comment.
This test just repeats the implementation. I would remove it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Original problem screenshot: attached in the first PR comment.
Test Plan
git fetch origin develop && git rev-list --left-right --count HEAD...origin/develop->1 0after commit, meaning this branch is one commit ahead of latestorigin/developand not behind.bun run test:unit src/components/widget/feedback/feedback-dialog.test.tsxbun run check-> 0 errors, existing 131 warningsbun -F native buildCurrent app state, and verified focus rings have left/top breathing room.$claude-review: one outerclaude-fable-5/xhighreview call; valid findings addressed before PR creation.Manual QA instructions:
Report Issue.Current app stateis focused underShare with the team.Docs