Problem/Motivation

ViewsExposedForm::buildForm() adds the exposed form's submit button (actions[submit]) without a #button_type, so themes don't style it as the form's main action. Other forms mark their main submit as primary, such as EntityForm::actions().

Proposed resolution

Set '#button_type' => 'primary' on the exposed form's submit button. The Reset button added by ExposedFormPluginBase stays without a type.

Remaining tasks

  • Add the button type and a test.
  • Check themes that already style the exposed form's button, such as Claro.

AI disclosure

Generated with the help of an LLM. Claude Code found the missing button type while reviewing a theme change on a site I work on, checked core's code, and drafted this issue; I confirmed the behavior and edited the text.

Issue fork drupal-3643224

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dave reid created an issue.

shadab majid’s picture

Hi, I'd like to work on this issue. I'll investigate the exposed form submit button implementation, add the primary button type and an appropriate test, and check the existing theme styling.