-
Notifications
You must be signed in to change notification settings - Fork 14
Fix row height inconsistency on friends page (#495) #496
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| </TableTd> | ||
| <TableTd style={{ textAlign: "right", padding: "7px 0px" }}> | ||
| {!isMe && ( | ||
| {isMe ? ( |
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.
Maybe this condition could be removed/the buttons could be combined, and then add style={{visibility: isMe ? "hidden" : undefined}} and aria-hidden={isMe ? "true" : undefined}. That way we don't need to duplicate the variant and size and text
| </TableTd> | ||
| <TableTd style={{ textAlign: "right", padding: "7px 0px" }}> | ||
| {!isMe && ( | ||
| {isMe ? ( |
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.
And also could add a comment for future reference, explaining why it was made like this
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.
And also could add a comment for future reference, explaining why it was made like this
Combined into one button and added a brief comment explaining the hidden state keeps row height consistent for the current user. Deletion behavior unchanged for other users.
|
Thank you for the contribution! |
Fixes #495
Description
Fixed the row height inconsistency on the friends page where the current user's row was shorter than other rows.
Changes
visibility: "hidden"andaria-hidden="true"for accessibility