Skip to content

feat: Expand tile drag handle hit area from 34px to 48px [CLUE-398]#2751

Open
dougmartin wants to merge 1 commit intomasterfrom
CLUE-398-increase-drag-thumb-hitarea
Open

feat: Expand tile drag handle hit area from 34px to 48px [CLUE-398]#2751
dougmartin wants to merge 1 commit intomasterfrom
CLUE-398-increase-drag-thumb-hitarea

Conversation

@dougmartin
Copy link
Member

The drag handle in the top-right corner of tiles was difficult to grab, especially on iFrameInteractive tiles where Leaflet map attribution links overlap the handle. This expands the invisible hit target area while keeping the visual gripper icon unchanged.

Changes:

  • Add $drag-handle-hit-size variable (48px) to vars.scss
  • Style .tool-tile-drag-handle-wrapper as 48×48px hit area
  • Keep .tool-tile-drag-handle icon at 34×34px, positioned via flexbox
  • Include commented-out option for grab cursor on full hit area

The 48px size meets WCAG 2.2 Level AAA touch target recommendations.

@dougmartin dougmartin requested a review from Copilot February 5, 2026 11:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR expands the invisible hit target area for the tile drag handle from 34×34px to 48×48px to improve usability, particularly for iFrameInteractive tiles where embedded content can interfere with the small corner target. The visual appearance of the drag handle icon remains unchanged.

Changes:

  • Added a new Sass variable $drag-handle-hit-size (48px) that meets WCAG 2.2 Level AAA touch target recommendations
  • Restructured the drag handle CSS to separate the 48×48px hit area wrapper from the 34×34px visual icon using flexbox positioning
  • Added comprehensive requirements and implementation documentation

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/components/vars.scss Adds $drag-handle-hit-size variable for the expanded 48px touch target
src/components/tiles/tile-component.scss Separates wrapper (48×48px hit area) from icon (34×34px visual), positions icon via flexbox
specs/CLUE-398-iframeinteractive-tile-hard-to-select/requirements.md Provides detailed requirements, technical context, and accessibility considerations
specs/CLUE-398-iframeinteractive-tile-hard-to-select/implementation.md Documents the implementation approach and CSS restructuring

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dougmartin dougmartin requested a review from emcelroy February 5, 2026 12:00
@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.80%. Comparing base (d1aa238) to head (a92a4f9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2751      +/-   ##
==========================================
- Coverage   86.81%   86.80%   -0.02%     
==========================================
  Files         829      829              
  Lines       44549    44549              
  Branches    11456    11456              
==========================================
- Hits        38675    38669       -6     
- Misses       5525     5531       +6     
  Partials      349      349              
Flag Coverage Δ
cypress ?
cypress-regression 77.91% <ø> (+1.09%) ⬆️
cypress-smoke 43.88% <ø> (ø)
jest 49.86% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cypress
Copy link

cypress bot commented Feb 5, 2026

collaborative-learning    Run #17625

Run Properties:  status check passed Passed #17625  •  git commit a92a4f9fcc: feat: Expand tile drag handle hit area from 34px to 48px [CLUE-398]
Project collaborative-learning
Branch Review CLUE-398-increase-drag-thumb-hitarea
Run status status check passed Passed #17625
Run duration 08m 01s
Commit git commit a92a4f9fcc: feat: Expand tile drag handle hit area from 34px to 48px [CLUE-398]
Committer Doug Martin
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 4
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 158
View all changes introduced in this branch ↗︎

The drag handle in the top-right corner of tiles was difficult to grab,
especially on iFrameInteractive tiles where Leaflet map attribution links
overlap the handle. This expands the invisible hit target area while
keeping the visual gripper icon unchanged.

Changes:
- Add $drag-handle-hit-size variable (48px) to vars.scss
- Style .tool-tile-drag-handle-wrapper as 48×48px hit area
- Keep .tool-tile-drag-handle icon at 34×34px, positioned via flexbox
- Include commented-out option for grab cursor on full hit area

The 48px size meets WCAG 2.2 Level AAA touch target recommendations.
@dougmartin dougmartin force-pushed the CLUE-398-increase-drag-thumb-hitarea branch from 604093a to a92a4f9 Compare February 5, 2026 12:08
Copy link
Contributor

@emcelroy emcelroy left a comment

Choose a reason for hiding this comment

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

Looks good 👍 I did wonder how this might affect certain tile types like the drawing tile. It does make that corner a little awkward to work in, but it's not too bad. And I see that was described as an acceptable tradeoff in requirements.md. I'm assuming the humans involved thought so, too? It's not 100% clear because that's in the "Self-Review" section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants