-
Notifications
You must be signed in to change notification settings - Fork 8
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-groups): Add overflow #806
Conversation
Demo will be published at https://apps.inindca.com/common-ui-docs/genesys-webcomponents/feature/COMUI-3050-overflow |
2b77284
to
c291214
Compare
visual-only | ||
placement="top" | ||
ref={el => (this.tooltip = el)} | ||
<Host role="menuitem"> |
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.
This role needs to be in the light dom, otherwise the menu won't announce the number of items in the menu
da7952d
to
5b99fa4
Compare
fadc06d
to
60dce21
Compare
...es/genesys-spark-components/src/components/beta/gux-avatar-group/gux-avatar-group.service.ts
Outdated
Show resolved
Hide resolved
packages/genesys-spark-components/src/components/beta/gux-avatar-group/gux-avatar-group.tsx
Outdated
Show resolved
Hide resolved
.../gux-avatar-group/gux-avatar-overflow/gux-avatar-overflow-item/gux-avatar-overflow-item.scss
Show resolved
Hide resolved
...ents/src/components/beta/gux-avatar-group/gux-avatar-overflow/gux-avatar-overflow.service.ts
Outdated
Show resolved
Hide resolved
resetFocusableSibling(clickedElement); | ||
setFocusTarget(clickedElement); | ||
} |
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.
I was just wondering what is the intended response when you click a gux-avatar-group-item-beta
is the focus moved somewhere ?
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.
There's a convention in menus and avatar groups that I've seen where the last item visited by keyboard or clicked is set at the current focus target. So if you tab back up from below then you return to the last item clicked / the one you tabbed away from.
packages/genesys-spark-components/src/components/beta/gux-avatar-group/gux-avatar-group.tsx
Outdated
Show resolved
Hide resolved
...a/gux-avatar-group/gux-avatar-overflow/gux-avatar-overflow-item/gux-avatar-overflow-item.tsx
Show resolved
Hide resolved
...a/gux-avatar-group/gux-avatar-overflow/gux-avatar-overflow-item/gux-avatar-overflow-item.tsx
Outdated
Show resolved
Hide resolved
e5fc0cf
to
46fce8c
Compare
46fce8c
to
3ccd099
Compare
3ccd099
to
0422877
Compare
...ponents/src/components/beta/gux-avatar-group/gux-avatar-group-item/gux-avatar-group-item.tsx
Show resolved
Hide resolved
0422877
to
840967e
Compare
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
...components/src/components/beta/gux-avatar-group/gux-avatar-overflow/gux-avatar-overflow.scss
Outdated
Show resolved
Hide resolved
@Prop() | ||
quantity: GuxAvatarGroupQuantity = Math.max( | ||
...GROUP_QUANTITIES | ||
) as GuxAvatarGroupQuantity; |
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.
So we are purposely limiting the max quantity to the max of the number array? Is that why it's done this way?
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.
I checked this with Monse and we don't need to limit it to a max so I've updated it to remove the restriction.
840967e
to
0cdf1c1
Compare
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
6709011
to
3f03442
Compare
I think there's enough in this as it is so I've added another follow-on task for the next part: https://inindca.atlassian.net/browse/COMUI-3367