Skip to content

FSHSP-275 fix(field-sign): centre the hint and the signature in the box (0.17.1) - #203

Merged
robinlopez merged 3 commits into
mainfrom
fix/FSHSP-275-field-sign-layout
Nov 26, 2026
Merged

robinlopez merged 3 commits into
mainfrom
fix/FSHSP-275-field-sign-layout

Conversation

@robinlopez

@robinlopez robinlopez commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Jira: FSHSP-275. Same fix in the React port (FSHSP-270) and in the Figma component (4219:1970).

Symptom: in ui-field-sign, the placeholder and the signature sat left of the box centre whenever the clear button was shown: an empty column ran down the right of the drawing area.

Cause: the clear button was projected as a ui-field suffix (uiFieldSuffix), a full-height 36 px column beside .ui-field-sign-pad. The pad lost that width, and everything centred in it shifted left.

Fix: the button now shares the pad's grid cell, pinned to its top-right corner (place-self: start end). The drawing area spans the whole box; the button keeps its size, position and behaviour (hands focus back to the area, hidden in readonly).

Two commits:

  • 3dc6c45 the fix, a spec asserting the button lives in the pad, an MDX note, CHANGELOG entry;
  • 45917fa release 0.17.1: [0.17.1] - 2026-11-26 section, projects/ui-kit/package.json bumped. MCP manifest regenerated after the bump (docs:config, mcp:assets, mcp:bundle), nothing tracked changed. Tag and GitHub release come from publish-ui-kit.yml after merge.

Noted in the CHANGELOG: a CSS override targeting the button as a direct child of .ui-field-box no longer matches; it is inside .ui-field-sign-pad.

Tests: pnpm test (471), ng lint ui-kit, docs:config:check green. Checked in the built Storybook (Playwright, system Chrome): the pad spans the box (356 px inside a 360 px box), the placeholder centre equals the box centre (240 px) in default and small; a stroke drawn up to the corner works and the button still clears.

🤖 Generated with Claude Code

The clear button was projected as a ui-field suffix, a full-height column
beside the drawing area: the area lost its width, and the placeholder and
the signature centred left of the box centre. The button now shares the
pad's grid cell, pinned to its top-right corner, so the area spans the
whole box.
@robinlopez
robinlopez merged commit 353542d into main Nov 26, 2026
4 checks passed
@robinlopez
robinlopez deleted the fix/FSHSP-275-field-sign-layout branch November 26, 2026 09:21
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