WordPress/gutenberg

Dropdown active option indicator misaligned

已关闭

#52,001 创建于 2023年6月28日

 (7 条评论) (1 个反应) (0 位负责人)JavaScript (3,893 个派生)batch import
Good First IssueMobile App - i.e. Android or iOS[Priority] Low[Type] Regression

仓库指标

星标
 (9,607 个星标)
PR 合并指标
 (平均合并 12天 18小时) (30 天内合并 509 个 PR)

描述

Description

The indicator for the currently selected option within a dropdown menu is misaligned.

This appears to have been introduced in the 22.5 release via https://github.com/WordPress/gutenberg/pull/50665 or https://github.com/WordPress/gutenberg/pull/50907.

Step-by-step reproduction instructions

  1. Add a Heading block1.
  2. Tap the "Change level" button (an H2 icon) to open the heading level dropdown menu.

Expected behaviour

The check mark indicating the selected option is flush to the right.

Actual behaviour

The check mark indicating the selected option is slightly to the right of center.

Screenshots or screen recording (optional)

Correct (22.4) Incorrect (22.5)
alignment-correct alignment-incorrect

WordPress information

  • WordPress version: 6.2.2
  • Gutenberg version: 16.0.0
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes

Device information

  • Device: iPhone 13 mini
  • Operating system: iOS 16.5.1
  • WordPress app version: 22.5

Footnotes

  1. Reproducing via heading level may not be possible due to https://github.com/WordPress/gutenberg/issues/51996, but this can be reproduced via block or text alignment dropdown menus as well.

贡献者指南