WordPress / WordPress/secure-custom-fields

Field markup issues on edit User page

Open
#349 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug
Dominant language
PHP
Stars
131
Forks
64
Avg merge
10m
Merged PRs (30d)
1

Description

Hi!

I found several issues related to the visual display of some fields on the user page.

  1. Post Object field stretches to the full width of the page, although all fields in this section have a maximum width of 25em. At the same time, the normal select is displayed correctly.
Image
  1. On the same user page in the mobile version, all fields do not correspond to the native design of standard fields.
Image
  1. When adding a Tab, it is heavily indented to the left. Overall okay, but in the mobile version it looks very strange.
Image

I used this quick fix for these issues. Maybe it will help.

body.user-edit-php {
	.form-table {
		.acf-hl.acf-tab-group {
			padding-left: 5px !important;
		}

		.acf-field {
			.acf-label {
				@include media.mobile {
					padding: 10px 0 0;
					margin: 0;
				}
			}

			.acf-input {
				@include media.mobile {
					padding: 4px 0 6px;
				}

				input {
					@include media.mobile {
						width: 100%;
    					max-width: 100% !important;
					}
				}

				.select2 {
					width: 100%;
					max-width: 25em;

					@include media.mobile {
						max-width: 100%;
					}
				}
			}
		}
	}
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the WordPress edit User page and locate the styles matching body.user-edit-php, including the .acf-field, .acf-input, .select2, and .acf-tab-group rules shown in the report. Compare the field widths, mobile spacing, and tab indentation with the supplied screenshots; done means these fields match the standard user-edit design on desktop and mobile.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, scss, wordpress
Domain
design, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.