Repository navigation
FSHSP-275 fix(field-sign): centre the hint and the signature in the box (0.17.1) - #203
Merged
Merged
Conversation
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.
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.
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-fieldsuffix (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 inreadonly).Two commits:
3dc6c45the fix, a spec asserting the button lives in the pad, an MDX note, CHANGELOG entry;45917farelease 0.17.1:[0.17.1] - 2026-11-26section,projects/ui-kit/package.jsonbumped. MCP manifest regenerated after the bump (docs:config,mcp:assets,mcp:bundle), nothing tracked changed. Tag and GitHub release come frompublish-ui-kit.ymlafter merge.Noted in the CHANGELOG: a CSS override targeting the button as a direct child of
.ui-field-boxno longer matches; it is inside.ui-field-sign-pad.Tests:
pnpm test(471),ng lint ui-kit,docs:config:checkgreen. 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