-
-
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
fix(contactsmenu): adjust padding to new design #50532
base: master
Are you sure you want to change the base?
Conversation
/backport to stable31 |
/backport to stable30 |
Signed-off-by: Richard Steinmetz <[email protected]>
958fb8e
to
d40031d
Compare
Why does this even need custom styling? Could it just use the default ncaction styles? |
I wish. The problem is that contact menu actions may inject custom image URLs as their icons which cannot be used with our That is why we need custom styles here. |
@@ -114,13 +113,9 @@ export default { | |||
&__icon { | |||
width: 20px; | |||
height: 20px; | |||
padding: 12px; | |||
padding: 7px; |
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.
padding: 7px; | |
padding: calc((var(--default-clickable-area) - 20px) / 2); |
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.
Independent from other styles, only magic number is the icon size we set above.
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.
Thats not all that changed, the NcAvatar
above still uses the 44px. I think the current design is the default, so removing size
should work (but not tested).
Summary
Padding and white space inside the contacts menu has not yet been adjusted to the new clickable area of 34 px.
Checklist