Skip to content

Commit 52c3322

Browse files
committed
code for submit button added to readme
1 parent 849f9e8 commit 52c3322

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@ A11y Add-on for FacetWP adds accessibility enhancements for FacetWP's form eleme
99
FacetWP must be installed and activated.
1010

1111
- Wraps all facets in a div with class=facet-wrap
12-
- Adds a label to each facet with text=facet_label, for=facet_name
12+
- Adds a label to some facets with text=facet_label, for=facet_name
13+
- Adds fieldset and legend to checkboxes and radio buttons
1314
- Adds an id to each facet with id=facet_name
1415
- FacetWP default checkbox markup replaced with semantic HTML checkboxes
15-
- Search field uses <search> landmark and real <button>
16+
- Search field uses <search> landmark, icon is removed
1617
- Always hides counts in dropdowns
1718
- Disables auto-refresh
1819
- Customizes icon for prev/next pagination links
1920
- Scroll back to top of results when pager is clicked
2021

22+
## Search button
23+
We add the Submit button as a Custom HTML block:
24+
````
25+
<button id="search" onclick="FWP.refresh()" class="facetsubmit" type="submit">Filter</button>
26+
```
27+
2128
Semantic HTML checkboxes courtesy of Mark Root-Wiley, [MRW Web Design](https://mrwweb.com/) [Accessibility Addon for FacetWP](https://github.com/mrwweb/accessibility-addon-for-facetwp)

0 commit comments

Comments
 (0)