Skip to content

Fixed transparent header retaining a shadow line - #4609

Open
stefan-cotitosu wants to merge 1 commit into
developmentfrom
fix/transparent-header-shadow-line
Open

Fixed transparent header retaining a shadow line#4609
stefan-cotitosu wants to merge 1 commit into
developmentfrom
fix/transparent-header-shadow-line

Conversation

@stefan-cotitosu

Copy link
Copy Markdown
Contributor

Summary

  • Transparent headers still showed a faint shadow line along the bottom edge, even with all row border widths set to 0.
  • .hfg_header.site-header { box-shadow: 0 -1px 3px rgba(0,0,0,.1); } in _general.scss had no exception for the transparent header state, unlike the sibling background/::before overlay rules on #header-grid.global-styled, which already skip themselves via :not(.neve-transparent-header).
  • Added the same :not(.neve-transparent-header) guard to the box-shadow rule.

Related issue

Codeinwp/neve-pro-addon#3254 — that issue's diagnosis pointed at the Pro addon's _transparent-header.scss sticky/non-sticky branches, but on a live repro the Pro header_footer_grid stylesheet wasn't loaded at all (only its JS was enqueued). The shadow is applied unconditionally by this free-theme rule instead.

Test plan

  • Enable transparent header (Customize > Header > Global Header Settings > Style > Enable Transparent Header).
  • Set all active row border widths to 0.
  • Confirm no shadow/line is visible along the header's bottom edge, with a background color behind it that would make a faint line visible.
  • Confirm non-transparent headers still show the shadow as before.

The base .hfg_header.site-header box-shadow rule had no exception for
the transparent header state, unlike the neighboring background/overlay
rules on #header-grid.global-styled which already skip themselves via
:not(.neve-transparent-header). Added the same guard to the box-shadow
rule so a transparent header no longer shows a faint shadow line along
its bottom edge.
@pirate-bot

Copy link
Copy Markdown
Collaborator

Plugin build for 6866971 is ready 🛎️!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note

Copilot was unable to run its full agentic suite in this review.

Pull request overview

Updates header styling to avoid applying a box-shadow when the Neve transparent header mode is active.

Changes:

  • Restricts the .hfg_header.site-header box-shadow rule to apply only when the header is not marked as transparent.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

.hfg_header.site-header {
.hfg_header.site-header:not(.neve-transparent-header) {
box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Verified this isn't the case here: .neve-transparent-header is added directly onto the same header wrapper element (#header-grid) that also carries hfg_header and site-header — confirmed both on a live page's DOM (<div id="header-grid" class="hfg_header neve-transparent-header site-header">) and in neve-pro-addon's source, where add_class_to_header_wrapper() appends the class to that same wrapper's class list. So the selector correctly matches; no parent-qualified selector is needed.

Copilot AI commented Sep 1, 2026

Copy link
Copy Markdown

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Install WordPress Test Suite

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The Install WordPress Test Suite custom setup step from your .github/workflows/copilot-setup-steps.yml file failed.

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.

4 participants