Skip to content

Login and Registration: Center the Remember Me row and help toggle - #13202

Open
itzmekhokan wants to merge 1 commit into
WordPress:trunkfrom
itzmekhokan:fix/65918-tooltip-vertical-align
Open

Login and Registration: Center the Remember Me row and help toggle#13202
itzmekhokan wants to merge 1 commit into
WordPress:trunkfrom
itzmekhokan:fix/65918-tooltip-vertical-align

Conversation

@itzmekhokan

@itzmekhokan itzmekhokan commented Aug 20, 2026

Copy link
Copy Markdown

On the login form the "Remember Me" help icon sits above the label text, and the row sits above the Log In button's center.

The checkbox, label, and toggle are laid out inline in a floated paragraph. The toggle is an inline-flex box, so it takes its baseline from the icon it wraps rather than from the text; and the 24px paragraph has never been centered on the 40px button. Making the paragraph a flex row aligns the three items to each other, and giving it the button's height centers the row on the button.

Centering aligns margin boxes, so the margins the checkbox and label carried for the inline layout are zeroed; gap restores the spacing inline whitespace provided.

Trac ticket: https://core.trac.wordpress.org/ticket/65918

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5
Used for: Measuring the misalignment against trunk and against pre-7.1 geometry, testing candidate rules including long-label and RTL output, and drafting the CSS change. All changes were reviewed and validated by me.

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props khokansardar, utsavladani, dhruvang21, pbiron.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@itzmekhokan
itzmekhokan force-pushed the fix/65918-tooltip-vertical-align branch from 291e548 to 36d2946 Compare August 20, 2026 12:44
@itzmekhokan itzmekhokan changed the title Administration: Align tooltips vertically with adjacent text Login and Registration: Center the Remember Me row and help toggle Aug 20, 2026
@Utsav-Ladani

Copy link
Copy Markdown

I am not familiar with the exact design for this, but checkbox seems little bit up and tooltip icon is little bit down compare to text. However, the difference isn't noticeable.

Screenshot 2026-08-20 at 6 37 37 PM

@dhruvang21

Copy link
Copy Markdown

@itzmekhokan i have tested the fix in WordPress playground and center alignment appears to be off by pixel
image

The "Remember Me" checkbox, label, and help toggle sit in a floated
paragraph laid out inline. The help toggle is an inline-flex box, so it
takes its baseline from the icon it wraps rather than from the text,
which lifts it above the label it belongs to. Separately, the paragraph
has never been centered against the taller Log In button beside it.

Making the paragraph a flex row aligns all three against each other, and
giving it the button's height centers the row against the button. Since
centering aligns margin boxes, the margins the checkbox and label carried
for the inline layout are zeroed so both land on the row's center.

Fixes #65918.
@itzmekhokan
itzmekhokan force-pushed the fix/65918-tooltip-vertical-align branch from 36d2946 to b304519 Compare August 20, 2026 13:32
@pbiron

pbiron commented Aug 20, 2026

Copy link
Copy Markdown

Thanx for this PR, I was noticing the same thing and thought it was by design but I didn't like it (I didn't have time to investigate whether the offset was by design or not).

The PR looks good to me (the commit @itzmekhokan did an hour ago fixes the problem reported by @dhruvang21.

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.

4 participants