-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
FocalPointPicker: Apply modern styling #58459
Conversation
Looks good! |
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.
The changes look good to me, but might need a review from the @WordPress/gutenberg-components team just to be sure.
You will also need to update the changelog.
packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts
Outdated
Show resolved
Hide resolved
packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts
Show resolved
Hide resolved
packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts
Outdated
Show resolved
Hide resolved
packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts
Outdated
Show resolved
Hide resolved
packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts
Outdated
Show resolved
Hide resolved
packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts
Outdated
Show resolved
Hide resolved
packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts
Outdated
Show resolved
Hide resolved
packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts
Show resolved
Hide resolved
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 Core SVNCore Committers: Use this line as a base for the props when committing in SVN:
GitHub Merge commitsIf 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. |
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.
packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts
Outdated
Show resolved
Hide resolved
I made a small adjustment here: a27697c |
I don't have any additional feedback to give on this PR, so I'll let @t-hamano given the final approval here |
I considered it, but I picked 16 for two reasons: 16px blur is used predominantly throughout, and could perhaps be standardized further. And second, I don't think we should allow the picker to go "off canvas", like it does now—I did not want to do that effort as part of this PR. If we don't have that conflict, we don't have the blurred edge issue. |
If you want to indicate a value of 0 or 100 in this component, the picker should come to the contour. Isn't it inevitable that the picker will go off canvas? 🤔 |
I would think that the first 20px of the bounds would equate to the 0/100% mark (whatever keeps the picker from spilling into the rest of the UI). |
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.
I would think that the first 20px of the bounds would equate to the 0/100% mark (whatever keeps the picker from spilling into the rest of the UI).
I see, I think it's okay to ship this PR if that approach is being considered in the future 👍
What?
Testing Instructions
Screenshots or screencast
Current:
old-focal.mp4
Proposed:
updated-focal.mp4