Skip to content

fix(app): make attachment remove buttons accessible on touch devices - #49134

Open
zonemeen wants to merge 1 commit into
anomalyco:devfrom
zonemeen:fix-touch-attachments
Open

zonemeen wants to merge 1 commit into
anomalyco:devfrom
zonemeen:fix-touch-attachments

Conversation

@zonemeen

Copy link
Copy Markdown

Issue for this PR

Closes #49102

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Remove buttons were only revealed on hover. Reuse hover-reveal for attachment and comment remove buttons so they remain visible on touch devices, and show them on keyboard focus. Mouse hover behavior is preserved.

How did you verify your code works?

  • Temporary Playwright checks in Chromium: removed PNG and text attachments on touch, preserved the draft, and verified desktop hover and keyboard removal.
  • bun typecheck in packages/session-ui.
  • Prettier and git diff --check.

Screenshots / recordings

Chromium touch emulation, 390 × 844 viewport, 2× scale. Same draft and attachments in both captures.

Before After
before after

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.

web: attachment remove button is inaccessible on touch devices

1 participant