Skip to content

1095: Fix NPS survey close button alignment after submission - #353

Open
tomjn wants to merge 1 commit into
mainfrom
1095-nps-close-button-alignment
Open

1095: Fix NPS survey close button alignment after submission#353
tomjn wants to merge 1 commit into
mainfrom
1095-nps-close-button-alignment

Conversation

@tomjn

@tomjn tomjn commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

The confirmation-state rule from #351 centred the close button horizontally, which puts the glyph on top of the confirmation message text. On mobile it lands between the two wrapped lines.

The original report was about vertical alignment, not horizontal, so this sizes the button box to its own font size instead. A 1.5rem square with centred content aligns to the first line of whatever sits next to it, so the form state and the confirmation state agree without a state-specific rule. It also takes the hit area from 15x29 to 24x24, which meets WCAG 2.2 SC 2.5.8.

The confirmation-state rule centred the button horizontally, putting the glyph on top of the message text. The original report was about vertical alignment, so size the button box to its own font size instead, which lines it up with the first line of text in both states.
@tomjn
tomjn requested review from Rayhatron and svandragt July 27, 2026 23:18
@svandragt
svandragt removed their request for review September 4, 2026 07:47
@svandragt

svandragt commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Task is blocked see ticket. Don't merge.

@svandragt
svandragt removed the request for review from Rayhatron September 4, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants