Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#52803 closed defect (bug) (reported-upstream)

Initial condition of alignment drop-down is incorrect.

Reported by: litfod's profile litfod Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.3
Component: Editor Keywords:
Focuses: ui Cc:


This bug has been prevalent for years and is a constant problem.

When adding an image or video to WordPress in a new block, the alignment dropdown box shows the images as being centred when it is left-aligned. Therefore, when scanning a freshly created article containing new image inserts it is not possible to detect misaligned images easily.

Since the majority of images will be centred, why not make this the actual proper default anyway.

It would be good to check that other WordPress controls always reflect the actual internal state all of the time, without fail as well.

Change History (2)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Editor
  • Focuses coding-standards removed

#2 @sabernhardt
3 years ago

  • Focuses accessibility removed
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
  • Version changed from 5.7 to 5.3

Technically, the block is not left-aligned but it originally aligns the same way as text, unless the theme has a different default styling for the figures. When you select one of the options, that assigns a different layout for the individual block. Changing the theme's default figure styling is possible with Additional CSS.

A similar issue was opened on GitHub, and I added a comment there relating to this aspect of the alignment dropdown. You could join the discussion there and/or on a new issue, if this should be separate from that one.

(Before 5.3, these options were displayed in a row instead of in a dropdown.)

Note: See TracTickets for help on using tickets.