WordPress / WordPress/pattern-directory

Block theme: Allowing users to clear the search form and submit.

Open
#673 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Component] Theme
Dominant language
PHP
Stars
134
Forks
46
Avg merge
9h 4m
Merged PRs (30d)
19

Description

Describe the bug
We currently submit the page to apply filters and/or reset states. However, the search bar currently includes the required attribute which makes it impossible to clear the search term directly. I think we should remove that attribute which gives users the ability to clear their search term.

I did this for the wp.org/plugins theme and think we should do it here.

Problem
Screen Capture on 2024-04-17 at 08-24-36 (1)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the block theme's search-form configuration and compare it with the referenced wp.org/plugins theme change in inc/block-config.php around line 205. Remove the search bar's required attribute so users can clear the term and submit the form to reset filters or state.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend, web-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.