Skip to content

fix: admin heading spacing and button icon alignment#9

Merged
altugank merged 2 commits into
mainfrom
fix/admin-ui-spacing-and-icon-alignment
Jun 9, 2026
Merged

fix: admin heading spacing and button icon alignment#9
altugank merged 2 commits into
mainfrom
fix/admin-ui-spacing-and-icon-alignment

Conversation

@altugank

@altugank altugank commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Two small admin-UI polish fixes, both verified in a live WordPress 7.0 / PHP 8.2 install with the plugin active.

Type of change

  • Bug fix (non-breaking)

Changes

1. Main heading spacing. The .wp-puller-title heading had no breathing room. WordPress core's .wrap h1 { margin: 0 } (specificity 0,0,1,1) was out-specifying the plugin's single-class .wp-puller-title (0,0,1,0), so the custom margin never applied. Fixed by raising specificity to .wp-puller-wrap .wp-puller-title and giving it margin: 16px 0 28px, a small top padding, and a 10px gap between the icon, title text, and version badge.

2. Button icon vertical alignment. Dashicons inside buttons rendered with an inherited line-height (~30px) inside a 16px-tall box, so the glyph sat above the optical center next to the label. Fixed by pinning each icon's line-height to its box height (16px for action/field/copy buttons, 28px for the title icon).

How was this tested?

  • Live WordPress install via Docker; logged into wp-admin and rendered the WP Puller page.
  • Confirmed computed styles before/after with getBoundingClientRect + getComputedStyle (icon line-height now equals box height; heading margins now apply).
  • Visual before/after screenshots of the heading and the Check for Updates / Update Now buttons.

Checklist

  • php -l / no PHP touched (CSS only).
  • Did not rebuild/commit the release wp-puller.zip (handled separately, per CONTRIBUTING).

altugank and others added 2 commits June 9, 2026 16:13
Admin UI polish, verified in a live WordPress 7.0 install:

- Main heading (.wp-puller-title) had no breathing room because WP core's
  `.wrap h1` (margin:0) out-specified the single-class selector. Raise
  specificity to `.wp-puller-wrap .wp-puller-title` and give it top/bottom
  margin (16px/28px), a little top padding, and a 10px gap between the icon,
  title, and version badge.
- Dashicons inside buttons rendered with an inherited line-height (~30px) in
  a 16px-tall box, pushing the glyph off-center. Pin each icon's line-height
  to its box height (16px buttons, 28px title) so glyphs sit centered.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@altugank altugank merged commit 8d069d2 into main Jun 9, 2026
6 checks passed
@altugank altugank deleted the fix/admin-ui-spacing-and-icon-alignment branch June 9, 2026 13:15
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.

1 participant