-
-
Notifications
You must be signed in to change notification settings - Fork 827
Add padding for close button in settings dialog #9202
Conversation
Signed-off-by: gefgu <[email protected]>
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.
It doesn't seem right the button is not in the center of the clickable area...
I didn't let the button in the center of the clickable area because it would lose the alignment with the heading, but if you prefer it to the center, I will work on it. |
I've requested a review from the design team to figure out how this should actually look/behave |
Thanks for the quick feedback! When they figure out, I'm happy to help. |
I'd suggest using a target area of 32x32px for the desktop context.
|
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.
Please refer to my previous comment.
I've updated the code following @janogarcia suggestion. The close icon is centered within the 32x32 target area: And the target area is at 24px from the the modal window edges: I hope this solve the issue. What do you think @SimonBrandner? |
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.
LGTM codewise
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.
It seems this PR is introducing (maybe reintroducing an old one?) a different close icon than the one we currently use for modal windows.
The playwright tests are failing due to a difference in the size of the close icons - https://e2e-9202--matrix-react-sdk.netlify.app/#?testId=e020cd10d103304ed79f-bd3d48af8331ff4cee52038c2392796d4a22. |
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.
Sorry for letting this get stale, please see #9202 (comment)
Closing this for now, feel free to reopen if you want to make the changes. |
Add padding for close button in settings dialog. It maintains the alignment with the heading, maintains the original size of the "X" mark and follows Apple's human interface guidelines of 44x44 points for touch targets.
Fixes element-hq/element-web#22915
Signed-off-by: gefgu [email protected]
Checklist
Type: [enhancement/defect/task]
Before:


After:
Here's what your changelog entry will look like:
🐛 Bug Fixes