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

Query Loop block: switch 'Post type' inspector setting to use radio buttons when there are few items #63374

Closed
priethor opened this issue Jul 10, 2024 · 0 comments · Fixed by #63375
Assignees
Labels
[Block] Query Loop Affects the Query Loop Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Comments

@priethor
Copy link
Contributor

What problem does this address?

The Query Loop block's post type setting displays as a dropdown when, by default, there are only two post types to select from (Post and Page). While dropdowns are useful for avoiding visual clutter when there are many options to choose from, when there are few items, they require an extra click with no advantages.

image

What is your proposed solution?

Using a RadioControl instead of a SelectControl when there are only two items.

@priethor priethor added [Type] Enhancement A suggestion for improvement. [Block] Query Loop Affects the Query Loop Block labels Jul 10, 2024
@priethor priethor self-assigned this Jul 10, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Affects the Query Loop Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
1 participant