#37230 closed defect (bug) (fixed)
Shiny Updates: "Installed Plugin" shiny search issues
Reported by: | afercia | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.6 | Priority: | high |
Severity: | major | Version: | 4.6 |
Component: | Plugins | Keywords: | shiny-updates has-patch |
Focuses: | ui, accessibility, javascript | Cc: |
Description
In the Installed Plugins screen, the search is now a "live" search, meaning the results will be updated live as you type.
I'm all for improvements like this one, however I've noticed some issues. I'm sorry for being a bit late but to be honest I've missed the "Shiny Updates" was going to be also a "Shiny Search". I've quickly discussed this with @swissspidy at WCEU in Vienna and hopefully there's still time to address the main issues.
When a functionality changes behaviour, the interface should preferably reflect the change to inform users that something works in a different way now. By the way, there are no visual UI changes or any instructions to inform users about this new behaviour. WordPress is already using "live" searches, for example in the Themes screen and in the Customizer, and the new Plugin search should follow the previous implementations, also for better consistency.
Some points:
- When JavaScript is on and the live search works, the submit button "Search Installed Plugins" is useless and maybe even confusing for users. The interface should suggest users this is a "live" search. Maybe consider to hide the button when JS is on. When JS is off, the search works with a traditional page reload and needs a submit button.
- The "Live" search field should be visually clearly distinguished from "standard" search fields, this is material for designers :) wondering if any design feedback has been asked for the new search?
- For accessibility there's the need to inform users using an
aria-describedby
attribute on the search field, as already done for example for the Themes search, that points to an element with a description, preferably using the same text: "The search results will be updated as you type." By the way, when JS is off this aria-describeby attribute should not be used.
- For accessibility, there's the need to announce the number of search results otherwise users will experience a total lack of feedback. This should be done also for consistency with the Themes live search: all the "live" searches should work consistently across WordPress.
- The live search doesn't work in IE 8 and gives a JS error (IE 8 doesn't know what
history
is...), I guess this is the same for IE 9.
Attachments (4)
Change History (23)
#4
@
8 years ago
- Keywords has-patch added; needs-patch removed
37230.diff is a first pass at a patch to address the concerns raised above.
- Hides the submit button when JS is enabled and changes the search input styling to match other live searches (e.g. on the Add Plugins and Manage Themes screens). This includes a placeholder text
- Adds an
aria-describedby
attribute to the search input when JS is enabled, including the appropriate help tab content. - Announces the number of search results, like on the Manage Themes screen.
- Adds
if ( history.pushState ) { … }
checks for IE9 and older.
#5
@
8 years ago
Tested and works great. Just a couple of things as for now:
- not sure about the
search
event because it's not standard and because in many other places in WordPress there's an ongoing effort to standardise on usinginput
andkeyup
events.input
will work also when pasting a search term with a right click.keyup
just needed to support IE8 and to filter keys, if necessary. Would appreciate @azaozz thoughts on this :) - just on Safari, noticed a small visual glitch related to the
-webkit-search-cancel-button
. Seems this happens also on other input fields, for example on the Themes screen and maybe related to the font-size: 16px` set on the search field, see screenshot below
This ticket was mentioned in Slack in #design by swissspidy. View the logs.
8 years ago
This ticket was mentioned in Slack in #feature-shinyupdates by swissspidy. View the logs.
8 years ago
This ticket was mentioned in Slack in #design by swissspidy. View the logs.
8 years ago
#10
@
8 years ago
37230.2.diff changes the events to keyup
and input
as search
is non-standard.
It also adds the possibility to clear the search field using the esc key, like on the themes page.
I couldn't reproduce the Safari glitch, though I'm currently using Safari 10.0 Beta.
No feedback received from the design team yet, but I think we could commit this already and adjust styling later if needed. Opinions on that?
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
8 years ago
This ticket was mentioned in Slack in #feature-shinyupdates by swissspidy. View the logs.
8 years ago
#14
@
8 years ago
I think the search is looking really good design-wise. I have a design improvement for the search keyword display.
Let's add a colon after the word 'for'. Then also remove the quotes from around the keyword term and make the keyword bold and black. Like this:
So now if I include quotation marks in my search term, it will make more sense. Let's also make sure to have this reflected in the 'no results found' msg in the table too as I've mocked up below.
Outside of this, everything looks great!
#15
follow-up:
↓ 16
@
8 years ago
Oh, and can we drop the ellipses (...) from the placeholder text in the search input field? Those drive me nuts. AND it looks like we're using Sentence Case (only capitalizing the first word) in the input field's placeholder text too, which is good, but let's have that reflect on the plugin-install.php
page as well. Right now the plugin-install.php
page is using Title Case.
#16
in reply to:
↑ 15
@
8 years ago
+1 for standardising ellipses and sentence/title case on all the search fields across the admin screens :) looking for example at the inconsistencies on some screens:
themes.php theme-install.php plugins.php plugin-install.php upload.php (list and grid) Customizer > search menu items Customizer > search widgets
this would probably need its own ticket.
#17
@
8 years ago
- Resolution set to fixed
- Status changed from assigned to closed
Thanks a lot for your feedback!
Since the search keyword display and the placeholder text haven't changed as part of Shiny Updates, I'd really optimize those in a separate ticket.
For example, edit.php
and comments.php
display the search keyword the same way as plugins.php
. These should all be looked at at the same time.
I opened #37353 for this purpose.
Closing this one as fixed. Thanks all for your help!
These are great points Andrea.
Alec