Skip to content

fix: show hover actions on touch devices#817

Merged
matt2e merged 2 commits into
mainfrom
hoverless-mobile
Jun 24, 2026
Merged

fix: show hover actions on touch devices#817
matt2e merged 2 commits into
mainfrom
hoverless-mobile

Conversation

@matt2e

@matt2e matt2e commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary:

  • Make comment, reference, image, message, and timeline hover actions available on touch/coarse-pointer devices.
  • Preserve keyboard accessibility by revealing hidden actions on focus.

Tests:

  • Push hooks ran crates-fmt, crates-lint, crates-test, staged-ci, and differ-ci.

matt2e added 2 commits June 24, 2026 09:47
Signed-off-by: Matt Toohey <contact@matttoohey.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
@matt2e matt2e requested review from baxen and wesbillman as code owners June 24, 2026 21:29

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 385d05eea1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

opacity: 1;
}

@media (hover: none), (pointer: coarse) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include secondary coarse pointers

This media query only matches when the primary pointer is coarse or the primary input cannot hover. On hybrid devices such as touchscreen laptops/Surfaces with a mouse or trackpad as the primary input, users can still tap the UI but (pointer: coarse) and (hover: none) are false, so these controls remain opacity: 0 and the touch problem persists here and in the repeated media blocks. Use any-pointer: coarse/any-hover: none if the goal is to support any touch-capable input.

Useful? React with 👍 / 👎.

@matt2e matt2e merged commit 7327203 into main Jun 24, 2026
5 checks passed
@matt2e matt2e deleted the hoverless-mobile branch June 24, 2026 23:59
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.

1 participant