Repository navigation
fix(touch): show hover-only controls on devices without hover. - #1137
Open
KarunyaChavan wants to merge 1 commit into
Open
KarunyaChavan wants to merge 1 commit into
KarunyaChavan wants to merge 1 commit into
Conversation
- Keep the uploaded theme's delete button visible on touch in Preferences > Themes. - Keep the Overview tile's edit and close buttons visible on touch. - Keep the Pulse Monitor widget's settings gear visible on touch. - Keep the Agent chat conversation delete button visible on touch. - Rest corner controls at 0.7 opacity, matching the existing widget close button. - Show the Agent chat delete at full opacity; its grey glyph drops below 3:1 contrast at 0.7.
KarunyaChavan
marked this pull request as ready for review
November 27, 2026 12:09
This branch has not been deployed
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.
What it does
Buttons that used to appear only when you hover with a mouse now stay visible on touch devices, so tablet users can find and use them:
Fixes #1136
With a mouse nothing changes: these buttons still fade in on hover.
Rationale
These buttons start fully transparent and only show on
:hoveror:focus-visible. A touch screen has no hover, and a tap doesn't trigger:focus-visible, so on a tablet they never appear. You couldn't delete an uploaded theme, edit or close a desktop from Overview, open the Pulse Monitor settings, or delete a chat.We already fixed this for widgets: the widget close button and the "add widget" button stay visible under
@media ( hover: none )inassets/css/desktop.css. These buttons were missed.Implementation
@media ( hover: none )rule that keeps it visible, the same approach the widget close button uses. Hover behaviour on desktop is untouched.0.7opacity, matching the widget close button. They're small buttons in the corner of a card, and dimming them means a card you're only reading doesn't carry a hard × in its corner.0.7its contrast drops to about 2.5:1, below the 3:1 a control needs to be found easily.Testing instructions
Use a touch device. A real tablet works, or Chrome DevTools.