-
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
Design tweaks to Post Visibility popover #40530
Conversation
Size Change: -859 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
It's looking good! There are just a couple of things:
In Firefox it looks correctly.
Screen.Recording.2022-04-22.at.11.07.28.movThis won't be a problem if we end up placing the popovers beside the sidebar, but that's part of another conversation we could have when we are done with the rest of the popovers. |
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 padding around the edges of this doesn't look quite right to me when compared to the reference mockup. There needs to be around a 25% reduction around the perimeter, and 50% between the Visibility title and the first line of text:
Mockup | Current |
---|---|
Other things I just noticed:
- The text under the title of each item is lighter in color in the mockup -- not sure if this meets accessibility standards?
- The spacing after the radio button is larger in the mockup
- The visibility status titles are bold, but are not in the mockup
Thanks for the keen eyes! 👀
👌 Fixed.
👌 I've changed it so that the popover is anchored to the middle of the entire row. This stops it moving around.
👌
The spacing between the radio and the label? It is 12px for me which matches the mockup. |
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.
What?
A few design tweaks to the Post Visibility popover.
Why?
Part of #39082 which is an effort to refresh the entire Status & Visibility panel. I'm tackling it one popover at a time.
How?
PostVisibility
to use React hooks, because why not.I explored inlining the modal confirmation step that happens after you select Private which is what @javierarce suggests in this Figma file. I decided against this though as it's very difficult to get that flow to work nicely with a screen reader. Let's improve this part of the flow separately—see #9396.
Testing Instructions
trunk
.