This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Query text has whitespace around quotes when no content is found #538
Labels
🕹 aspect: interface
Concerns end-users' experience with the software
🛠 goal: fix
Bug fix
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟨 priority: medium
Not blocking but should be addressed soon
Projects
Description
When no results are found, the search term gets shown as
No image results for " <word> "
, with the additional whitespace between the quote characters and the word. This can be confusing, since it might lead users to believe they had whitespace in their original search term and that was why no images could be found.Reproduction
Expectation
The quotes should wrap the term exactly, e.g.
"<word>"
rather than" <word> "
.Screenshots
Environment
Additional context
The meta search form is the related component: https://github.com/WordPress/openverse-frontend/blob/91f79fdc4eec4c33e9a8e6e347f1e5ee0b4e07a7/src/components/VMetaSearch/VMetaSearchForm.vue
Resolution
The text was updated successfully, but these errors were encountered: