Skip to content

Commit

Permalink
Disable corrections for homepage search field
Browse files Browse the repository at this point in the history
As part of our work on site search, we've discovered a pain point where
mobile browsers' autocorrection features mess up user queries,
especially when it comes to domain specific terminology. For example,
searches for "HMRC" are frequently autocorrected to "Hercules", or
searches for "SORN" to "sworn".

- Bump `govuk_publishing_components` to 40.1.0
- Set `disable_corrections` parameter to `search` component in homepage
  header

See: alphagov/govuk_publishing_components#4112
  • Loading branch information
csutter committed Jul 30, 2024
1 parent eb281ac commit b149367
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ GEM
govuk_personalisation (0.16.0)
plek (>= 1.9.0)
rails (>= 6, < 8)
govuk_publishing_components (40.0.0)
govuk_publishing_components (40.1.0)
govuk_app_config
govuk_personalisation (>= 0.7.0)
kramdown
Expand Down Expand Up @@ -237,8 +237,6 @@ GEM
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.24.1)
mocha (2.4.4)
ruby2_keywords (>= 0.0.5)
msgpack (1.7.2)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
Expand Down
3 changes: 2 additions & 1 deletion app/views/homepage/_homepage_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
homepage: true,
on_govuk_blue: true,
margin_top: 5,
disable_corrections: true,
} %>
</form>
</div>
</div>
</div>
</header>
</header>

0 comments on commit b149367

Please sign in to comment.