Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List Tables: Try using flexbox for row actions on smaller screens #825

Closed
wants to merge 2 commits into from

Conversation

ryelle
Copy link
Contributor

@ryelle ryelle commented Dec 17, 2020

This updates the row actions CSS to use flexbox with a full-width layout, placing the extra space between each action item.

It also updates the min-width of each item to 10em, just to keep that larger touch-target. That's an arbitrary amount, we can tweak that if another value looks better.

I removed the 10em width in favor of extra padding around each item, since it wasn't very clear that the whole space is a touch target.

These screenshots are out of date.

At 782px, it switches to the full-width flexbox layout:

780px

Around 660px the last item wraps

660px

Around 510px the 3rd item wraps

510px

Around 375px, each item it on its own line

375px

Trac ticket: https://core.trac.wordpress.org/ticket/47895


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@ryelle ryelle self-assigned this Dec 17, 2020
@ryelle ryelle force-pushed the ticket-47895-flexbox branch 2 times, most recently from 84094c7 to 44176e8 Compare May 20, 2021 19:11
@ryelle
Copy link
Contributor Author

ryelle commented May 26, 2021

New iteration, with space-between removed:

Screen Shot 2021-05-26 at 10 34 35 AM

@ryelle
Copy link
Contributor Author

ryelle commented Jun 4, 2021

Committed in r51073.

@ryelle ryelle closed this Jun 4, 2021
@ryelle ryelle deleted the ticket-47895-flexbox branch November 22, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant