fix: #3612787 Always show the Reset action on the Events exposed filters
Issue: https://www.drupal.org/project/vartheme_bs5_educare/issues/3612787
Always shows the Reset action on the Events listing's exposed filters so they match the News and Programs listing filters.
The Events view renders its exposed filters through Varbase Components' components_exposed_form, which inherits Drupal core's behaviour of hiding the Reset action (#access FALSE) until an exposed input is present. The BEF-driven News and Programs listings show Reset at all times via BEF's reset_button_always_show, which components_exposed_form has no equivalent for. This reveals the already-built, functional Reset action on the events exposed form in hook_form_alter() (alongside the existing blog exposed-form alter), so the events filter row matches the other listings. The Reset action's styling is already provided by the theme's views-exposed-filters component.
Verified on a fresh install, logged out (Varbase functional testing suite): Reset renders on the unfiltered /events page, is uppercase and navy like Apply Filter, and clears an applied filter back to /events. News and Programs are unaffected.
Note: the underlying gap is upstream — components_exposed_form in Varbase Components has no always-show-reset option like BEF. This theme-side reveal is the site-template adaptation; the durable fix belongs in Varbase Components.
AI-Generated: Yes
Checkpoints
- File an issue about this project
- Addition/Change/Update/Fix to this project
- Testing to ensure no regression
- Automated unit/functional testing coverage
- Developer Documentation support on feature change/addition
- User Guide Documentation support on feature change/addition
- UX/UI designer responsibilities
- Accessibility and Readability
- Reviewed by a human
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Update Release Notes
- Release