Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#64715 closed defect (bug) (fixed)

[Admin reskin] Register page notice missing white background

Reported by: juanfra's profile juanfra Owned by: audrasjb's profile audrasjb
Milestone: 7.0 Priority: normal
Severity: normal Version: trunk
Component: Login and Registration Keywords: has-patch
Focuses: ui Cc:

Description

After the admin reskin, notices on the register page don't have a white background color. The background color (#fff) is defined in common.css, but the register page only loads login.css, so the styling isn't applied.

Steps to reproduce

  1. Check that anyone can register on your site (Settings > General)
  2. Go to yoursite.tld/wp-login.php?action=register
  3. Check the "Register for this site" notice and see that's missing the white background.

Attachments (1)

register-notice-before.png (111.0 KB) - added by juanfra 3 months ago.
Register notice missing background color.

Download all attachments as: .zip

Change History (16)

@juanfra
3 months ago

Register notice missing background color.

This ticket was mentioned in PR #11027 on WordPress/wordpress-develop by @juanfra.


3 months ago
#1

  • Keywords has-patch added

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

Adding background color to the .notice in the login.css file, as the notices there don't match the reskin (complete styles live in common.css).

BeforeAfter
https://github.com/user-attachments/assets/e5dd6f5f-53b7-44c5-9e9a-e87786e68075https://github.com/user-attachments/assets/3ab7fd83-94e8-4425-9049-425b5e688dd5

#2 @swissspidy
3 months ago

  • Milestone changed from Awaiting Review to 7.0

#3 @huzaifaalmesbah
3 months ago

This restores visual consistency with the admin reskin. Looks good to me!

Before Apply Patch After Apply Patch ✅
https://i.ibb.co/JRqfRpWJ/Huzaifa-20260224211451.png https://i.ibb.co/XxP91XPg/Huzaifa-20260224211532.png
https://i.ibb.co/SwSXjtWV/Huzaifa-20260224212128.png https://i.ibb.co/5gN2MxYZ/Huzaifa-20260224212108.png
Last edited 3 months ago by huzaifaalmesbah (previous) (diff)

@shailu25 commented on PR #11027:


3 months ago
#4

BeforeAfter
https://github.com/user-attachments/assets/cb722807-3d72-4fec-8864-0a0891ddbf33https://github.com/user-attachments/assets/08de6284-1667-431f-ae69-e01d54ce5fb6

#5 @audrasjb
3 months ago

  • Owner set to audrasjb
  • Status changed from new to reviewing

Thanks for the PR.
Self assigning for final review and commit consideration.

@shailu25 commented on PR #11027:


3 months ago
#6

BeforeAfter
https://github.com/user-attachments/assets/cb722807-3d72-4fec-8864-0a0891ddbf33https://github.com/user-attachments/assets/08de6284-1667-431f-ae69-e01d54ce5fb6

#7 @joedolson
3 months ago

I think this is really a duplicate of #64678; the issue is that all notices of this type have a transparent background, and it should be handled globally.

@shailu25 commented on PR #11027:


3 months ago
#8

BeforeAfter
https://github.com/user-attachments/assets/c10a7b95-221f-4eb8-9b2c-a7759df73b09https://github.com/user-attachments/assets/1b9ee255-ebdb-4b29-8e69-e8474f5d80cc

#9 @juanfra
3 months ago

Thanks for looking at this.

I think this is really a duplicate of #64678; the issue is that all notices of this type have a transparent background, and it should be handled globally.

Sorry I missed that ticket! Discovered this while updating the logo for the login page.

Fair point that this should be handled globally. One thing to keep in mind though, the login/register screens don't load common.css where notices are defined, so login.css would still need updating regardless of where we fix this.

Would it make sense to handle the login-specific part here since we've already got the context, or would you prefer to coordinate it with the other ticket?

#10 @joedolson
3 months ago

Given that the commit has to happen in a different context, we can go ahead and keep them separate; I think that's reasonable.

#11 @audrasjb
3 months ago

Yes, let's keep that ticket to address login-specific issues.

#12 @audrasjb
3 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 61731:

Login and Registration: Add white background to register screen notices.

This changeset backports the changes made to common notices to login.css.

Props juanfra, huzaifaalmesbah, shailu25, joedolson.
Fixes #64715.

#13 @juanfra
3 months ago

Fantastic, thank you all!

#14 @joedolson
3 months ago

FYI, I'm reverting this change as part of the commit to fix #64678, as this wasn't complete; it needed to apply to both the .notice and the .message classes.

#15 @joedolson
3 months ago

In 61737:

Admin: Set info notices to use white background.

The admin reskin changed info notices to a transparent background, matching usage in Gutenberg. But with the gray background in the core admin, these notices didn't show up in an expected manner. Additionally, using a transparent background in a context where the background color is variable is risky for color contrast.

Change .notice-info, .notice-info.notice-alt, and .login .notice, .login .message to use white backgrounds. Reverts changes from [61731] to apply styles also to .message class.

Props mohitbsf, audrasjb, peterwilsoncc, pbiron, fabiankaegy, noruzzaman, joedolson.
Fixes #64678. See #64715.

Note: See TracTickets for help on using tickets.