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
feat: Avatar Group overflow spacing and overflow button border color #2121
Conversation
6571f73
to
bd5574d
Compare
Deploy preview for fundamental-styles ready! Built with commit 6571f73 |
Deploy preview for fundamental-styles ready! Built with commit d1cf59f |
bd5574d
to
8927c21
Compare
src/avatar-group.scss
Outdated
&__overflow { | ||
@include fd-reset(); | ||
|
||
&__body { |
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.
results in fd-avatar-group__overflow__body
which is not valid BEM, fd-avatar-group__overflow-body
is fine
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.
@mikerodonnell89 fixed
src/avatar-group.scss
Outdated
@@ -81,6 +81,19 @@ $block: #{$fd-namespace}-avatar-group; | |||
} | |||
} | |||
|
|||
&__overflow { |
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.
why do you need this? It's used like this <div class="fd-popover fd-avatar-group__overflow">
and it already has a reset coming from fd-popover
. If you inspect the element, all of the rules are overwritten:
You can only use fd-avatar-group__overflow-body
where you apply the 1rem padding and use the specificity to add margin to the item.
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.
@InnaAtanasova fixed
src/avatar-group.scss
Outdated
@@ -81,6 +81,17 @@ $block: #{$fd-namespace}-avatar-group; | |||
} | |||
} | |||
|
|||
&__overflow--body { |
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.
should be &__overflow-body
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.
__overflow--body
means that there's a class __overflow
and --body
is modifying this class
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.
@InnaAtanasova fixed
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.
@mikerodonnell89 why it's incorrect? The button has a
fixed |
@olshansky screenshot from the specs: So I think we will need a new style for this overflow avatar with the + text |
@mikerodonnell89 screenshot from the examples (I just removed accent color class modifier). Looks correct, isn't it? |
1f16e2e
to
386f1a3
Compare
@olshansky are these changes intended? |
@InnaAtanasova old service for placeholder images don't work (that's why I changed it at the last commit) |
@olshansky can you address #2153 as part of this ticket? |
@droshev should it be part of this PR? Because it is an issue in the popover component |
what is the problem with the popover? |
@droshev Popover header border color is different than the body border in Dark theme |
my comment was related to the arrow in RTL - it wasn't centered https://user-images.githubusercontent.com/4380815/108005485-d86a8780-6fc6-11eb-9f0a-d0d91f6d454f.png |
4769452
to
d1cf59f
Compare
@droshev Oh yes, fixed |
Related Issue
Closes #2091
Part of #2153
Description
Added overflow spacing and overflow button accent border.
Please check whether the PR fulfills the following requirements
rem
fd-*
class is used in the filefd-rtl
,fd-ellipsis
,fd-flex
,fd-selected
,fd-focus
, ect.)fd-reset()
mixin is applied to all elements[ci visual]
so it can trigger chromatic visual regression (e.g.test: run chromatic visual regression [ci visual]
)normalize
optionunnormalize
option