Skip to content

Fix Widget Form and Admin Styling for WP 7#2294

Merged
Misplon merged 6 commits intodevelopfrom
fix/wp7-styling-fixes
Mar 25, 2026
Merged

Fix Widget Form and Admin Styling for WP 7#2294
Misplon merged 6 commits intodevelopfrom
fix/wp7-styling-fixes

Conversation

@Misplon
Copy link
Copy Markdown
Member

@Misplon Misplon commented Mar 14, 2026

Summary

  • Fix measurement field select dropdowns losing their chevron when WP 7 block CSS strips native appearance
  • Restore WP 6-style checkbox appearance (white background, blue checkmark, simple focus border) to counter WP 7's filled-background checkbox styling
  • Normalize widget admin page button and Preview button sizing against WP 7's inflated min-height: 40px

Changes

  • Measurement selects: Add custom SVG chevron, -webkit-appearance: none, and WP 5.7.2 select styling to sow-measurement-select-unit and sow-multi-measurement-select-unit
  • Checkboxes: Override WP 7's checked state (filled theme-color background, white checkmark, glow focus ring) with WP 6 values (white background, blue #3582c4 checkmark, simple border focus)
  • Admin page buttons: Pin WP 5.7.2 button dimensions on Deactivate/Settings buttons in .so-action-links
  • Preview button: Pin min-height: 30px and WP 5.7.2 line-height on .siteorigin-widget-preview-button

Test Plan

  • WP 7 Block Editor: Insert a widget with measurement fields (e.g., Features), verify px/em/% dropdown shows a proper chevron
  • WP 7 Block Editor: Verify checkboxes are 16px, white background, blue checkmark when checked, simple border on focus
  • WP 7 Plugins > SiteOrigin Widgets: Verify Deactivate/Settings buttons match WP 6 sizing
  • WP 7 Panels dialog: Verify Preview button is not inflated
  • WP 6 / Classic Editor: Verify no visual regressions

🤖 Generated with Claude Code

Misplon and others added 6 commits March 14, 2026 19:08
Add custom SVG chevron, -webkit-appearance: none, and WP 5.7.2 select
styling to both measurement and multi-measurement unit selects so the
dropdown arrow renders correctly when WP 7 block CSS strips native
appearance.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add explicit width, height, and min-height to the existing checkbox
appearance fix so checkboxes render at 16px in WP 7 where block CSS
inflates their default dimensions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pin WP 5.7.2 button dimensions on .so-action-links buttons so
Deactivate/Settings buttons are not inflated by WP 7 block CSS resets.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Drop appearance: auto (which fights core's custom checkbox styling)
and instead resize the ::before pseudo-element to fit our 16px box,
zeroing out core's negative margins.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
WP 7 changes checked checkboxes to a filled background with white
checkmark and a glow focus ring. Restore the WP 6 look: white
background, blue (#3582c4) checkmark, simple border focus style.
Properly size the ::before pseudo-element and fix its margins to
align within the 16px box.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pin WP 5.7.2 button dimensions on the widget preview button so
WP 7's min-height: 40px does not inflate it. Applied in a general
scope so it works in block editor, Panels dialogs, and widgets page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Misplon Misplon requested a review from AlexGStapleton March 14, 2026 19:50
@Misplon Misplon changed the title Fix widget form and admin styling for WP 7 Fix Widget Form and Admin Styling for WP 7 Mar 14, 2026
@AlexGStapleton
Copy link
Copy Markdown
Member

Fix measurement field select dropdowns losing their chevron when WP 7 block CSS strips native appearance

The chevron is back for me, but it's overlapping the text.

image

Copy link
Copy Markdown
Member

@AlexGStapleton AlexGStapleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing else noted.

@Misplon
Copy link
Copy Markdown
Member Author

Misplon commented Mar 18, 2026

@AlexGStapleton Thanks, mate. When the overlap is occurring, please, could you confirm the WordPress version and the editor in use? I'm not currently able to recreate the issue. I've attached a build below in case that helps.

so-widgets-bundle.1.71.1-beta.zip

@Misplon Misplon requested a review from AlexGStapleton March 24, 2026 20:06
Copy link
Copy Markdown
Member

@AlexGStapleton AlexGStapleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue not happening with the provided build. I'm happy to consider this a build issue on my end.

For reference, it was previously happening in the SiteOrigin Features widget with all setups.

@Misplon Misplon merged commit 6fa81af into develop Mar 25, 2026
@Misplon Misplon deleted the fix/wp7-styling-fixes branch March 25, 2026 09:08
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.

2 participants