Skip to content

Feat: add disabledOn() to skip sticky header on custom pages#62

Merged
awcodes merged 1 commit into
3.xfrom
feat/disabled-on-custom-pages
May 21, 2026
Merged

Feat: add disabledOn() to skip sticky header on custom pages#62
awcodes merged 1 commit into
3.xfrom
feat/disabled-on-custom-pages

Conversation

@awcodes
Copy link
Copy Markdown
Owner

@awcodes awcodes commented May 21, 2026

Summary

  • Adds disabledOn(array|Closure $pages) method to StickyHeaderPlugin allowing users to opt specific custom Filament pages out of the sticky header
  • Refactors shouldStick() from a one-liner into explicit early-return conditions for readability
  • Adds two new unit tests covering the array and Closure forms
  • Updates README with a new "Disabling on Custom Pages" section

Test plan

  • it can register disabled pages as array
  • it can register disabled pages as closure
  • All existing tests continue to pass

🤖 Generated with Claude Code

Accepts an array or Closure of page class names and checks them against
the current route in shouldStick().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@awcodes awcodes merged commit 0f2643f into 3.x May 21, 2026
5 checks passed
@awcodes awcodes deleted the feat/disabled-on-custom-pages branch May 21, 2026 18:44
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