Skip to content

Refine widget resize handles - #26

Open
kdoberst wants to merge 2 commits into
patternfly:mainfrom
kdoberst:style-resize-handles
Open

kdoberst wants to merge 2 commits into
patternfly:mainfrom
kdoberst:style-resize-handles

Conversation

@kdoberst

@kdoberst kdoberst commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Updates all eight widget resize handles to use a 24×24 token-based clickable area.
  • Replaces the solid single-line corner glyph with two thin, non-scaling parallel lines.
  • Uses PatternFly subtle icon color to ensure at least a 3:1 contrast ratio against the widget header.

Screenshot

Screenshot 2026-11-11 at 6 41 04 PM

Testing

  • yarn test packages/module/src/WidgetLayout/tests/GridLayout.test.tsx
  • yarn lint:js
  • git diff --check

Comment thread packages/module/src/styles.css Outdated
.react-grid-item .react-resizable-handle-n,
.react-grid-item .react-resizable-handle-s,
.react-grid-item .react-resizable-handle-w,
.react-grid-item .react-resizable-handle-e {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This PR adds display: none to the ne, n, s, w, and e handles. Previously those five handles were transparent but still able to receive the touch event that starts resizing. With the new rule, the first touch targets the card instead; I confirmed that difference in a focused Chromium test of the before-and-after CSS. Could we keep enabled handles in the layout, use opacity for mouse hover, and make them visible on touch devices while keeping locked handles hidden? A touch resize test would protect this behavior.

@kdoberst

Copy link
Copy Markdown
Contributor Author

Thanks! Pushed 5dc0beb to keep enabled resize handles in the layout with display: grid and opacity: 0, show them at full opacity on coarse-pointer devices, and keep static widget handles hidden. I also added a regression test that protects the touch-target CSS contract.

@kdoberst
kdoberst requested a review from aferd November 24, 2026 17:07
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.

2 participants