#57949 closed defect (bug) (fixed)
Make the search field placement consistent on small screens and add toggle button into toolbar
Reported by: | oglekler | Owned by: | joedolson |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-screenshots has-patch |
Focuses: | ui, accessibility | Cc: |
Description
Right now Media library on small screens has search field on top, but it deteriorates the Toolbar, on the other hand Posts search is placed underneath of the posts list with forced positioning, and you need to scroll down to search something even if in all other use cases it is always on top of the page and results are underneath the search field. I am suggesting to adjust search appearance and add toggle button. It can remember its state for people who use it often, or can be toggled in Screen options.
Attachments (10)
Change History (34)
This ticket was mentioned in Slack in #core-test by oglekler. View the logs.
21 months ago
This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.
21 months ago
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
20 months ago
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
20 months ago
#8
@
20 months ago
- Milestone changed from Awaiting Review to 6.3
- Owner set to joedolson
- Status changed from new to accepted
I think this would be a nice, simple enhancement. Related to #31818.
This ticket was mentioned in Slack in #core by oglekler. View the logs.
18 months ago
This ticket was mentioned in Slack in #core by mr-cariol. View the logs.
18 months ago
#11
@
18 months ago
- Keywords needs-patch added
Hi! @mr-cariol,
you wrote that you didn't manage to finish it, but possibly you can write here your ideas where and what should be done. Will be great, if you will be able to share a working patch, even if it is not perfect.
Thank you 🙏
This ticket was mentioned in Slack in #accessibility by sabernhardt. View the logs.
18 months ago
#13
@
18 months ago
I would prefer not to add a toggle button to expand/collapse. Search fields probably should be as noticeable as the filtering links.
The plugins search forms and Media Library's grid mode even update results as you type instead of when clicking a Search button or pressing the Enter key. Introducing a button just to open the search form seems to go against that idea.
#14
@
18 months ago
- Keywords has-patch added; needs-patch removed
I agree with @sabernhardt that adding a toggle to access the search would reduce findability and add an extra step to performing the function. On mobile, since scrolling and pagination are a tedious way to find things, I'd consider search to be the primary finding aid, so let's not add barriers to it.
Patch:
1) Moves the search form back above the posts table. This is a fairly significant accessibility issue - the search form had been moved below the posts table using position: absolute;, so it had a mismatched keyboard sequence.
2) Adjusts mobile styles for search forms to be consistent.
3) Changes the media list view search form to match the structure of other views, with a submit button & label that indicates the post type.
4) Does *not* change the structure of the grid view. I'm not willing to remove the label in favor of a placeholder, as that would decrease the accessibility of the field. If we could add a submit button for the search, I'd remove the visible label, but that would be a significant rewrite of the media library search, and I'm not sure it's justified for this change.
#15
@
18 months ago
- Keywords commit added; needs-design-feedback removed
- Type changed from enhancement to defect (bug)
This is a small change that fixes an accessibility bug, so I'm marking it for commit. I'm also changing this from enhancement to bug, because the issue with the search form being visually at the bottom of the screen is a bug.
#17
@
18 months ago
@oglekler Though this doesn't include the toggle suggestion, we can discuss that further; feel free to reopen for further discussion.
#18
@
18 months ago
- Keywords needs-patch added; has-patch commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
Search field looks incorectly placed in Media table list between screen size 783 pixels and 1000 pixels. Missing padding/margin below search field. Looked OK before [56023]. Screenshot will be attached soon.
#21
@
18 months ago
@kebbet if you have a chance to double check this fix, please do. Patch restores some of the removed CSS but constrains it to the modal view & adds a breakpoint override.
Proposal for Posts search