-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update: Move item size control to the new view config UI. #64380
Update: Move item size control to the new view config UI. #64380
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
I wonder if instead of the eye icon we should try a check-box based interface. The eye doesn't feel super clear here. The closed eye also isn't super clear, I wonder if we shouldn't refresh it to be the eye but with a diagonal line across. |
Happy to try that separately, I don't think that icon exists in the set yet. @jorgefilipecosta thanks for the work so far, a couple of small suggestions:
|
f8e9334
to
5ff17de
Compare
Hi @jasmussen, seems like something we can try, I can have a look in a different PR. @jameskoster all your feedback was applied. |
Size Change: -225 B (-0.01%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
Thanks @jorgefilipecosta, I'm seeing two small issues... Sometimes I'm unable select the last value in the range, here's a video to demonstrate: bug.mp4Probably separate but the appearance of the marks is a bit buggy. I think they should rest on top of the track rather than above it, something like this: Maybe @WordPress/gutenberg-components has some insights there. |
Hi @jameskoster, the bug was fixed 👍 Regarding the marks I agree that your proposal seems like a preferred behavior, but I think we can fix it outside of this PR. The fix is on the component is even on the stories https://wordpress.github.io/gutenberg/?path=/story/components-rangecontrol--with-integer-step-and-marks it shows the UI as in this PR. |
Thanks for the fix, it's working now :) For the marks I suppose the question is whether or not this PR should be blocked by the visual bug. I suppose the other option would be to remove them for now and open a follow-up later once the display issue has been fixed. What do you think? |
Looks unrelated to this PR. I can repro in Storybook: @mirka could this be a recent regression caused by any of our work on #38730? |
No, I think the positioning of the marks was weird like this, for as long as I can remember 😅 I don't even know what the intended design was, but it does look like it was vertically centered on the line, originally (#19916). We should definitely fix it — I assumed it was an outdated feature or something because we never really heard about the visual issue. |
It's complicated further by I think the way to proceed here is;
|
975f6c3
to
4f1673a
Compare
@jameskoster, Sounds like a good plan, following it, I removed the marks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. This is working well for me an tidies things up compared to trunk so I'm happy to approve the design. We can always follow up to finesse.
I'll open an issue about the marks bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I noticed the range control is backwards haha. As you slide to the right the preview should get larger, it's currently the other way around :)
Hi @jameskoster, I missed a commit push, it should be fixed. |
Forgive me for jumping in randomly with a possibly context-lacking question: can this use the same design as the existing stepped slider we have? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to this PR, but I noticed that the Order button doesn't work.
The strange thing is that once I change the Sort By field to something other than Title, the Order button works:
d3e42842ad734696a9a3fdb1a82f664b.mp4
__nextHasNoMarginBottom | ||
__next40pxDefaultSize | ||
showTooltip={ false } | ||
className="dataviews-density-picker__range-control" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This selector is no longer used anywhere so I think it can be removed.
Good find @t-hamano, the sorting issue is not related to this PR. It only affects patterns (not templates and pages). I will look for a fix and propose a PR to it. |
Cool, well it seems like @jameskoster opened an issue already (#64481) and @ramonjd already opened a PR to fix it (#64487) 👏 - let's make sure to review that. |
@jasmussen I think you're referring to @jorgefilipecosta it seems the marks issue on Otherwise this seems good to me, pending resolution to Aki's feedback. |
5ceb9ec
to
2c8d3d4
Compare
Merging this one as all the blockers were addressed will follow up with the addition of the marks. |
This PR moves the item size picker to the new view configuration UI.
Follow up to #64175.
cc: @WordPress/gutenberg-design
Screenshots
Testing Instructions
I verified the item size picker is only available on the grid layout and still works as expected.