-
Notifications
You must be signed in to change notification settings - Fork 308
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
Set the mouse cursor to pointer on hover for Person Card enabled mgt-… #2652
Set the mouse cursor to pointer on hover for Person Card enabled mgt-… #2652
Conversation
Thank you for creating a Pull Request @agaskelluk. This is a checklist for the PR reviewer(s) to complete before approving and merging this PR:
|
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.
Works great!
Thanks for the PR @agaskelluk! As discussed in the corresponding issue, after this issue went through design review, we believe hover effects shouldn't have a pointer but only the click experience. Adding @Mnickii to see with you what are the options to achieve this expected behavior. Thanks! |
@sebastienlevert @Mnickii I appreciate the update. However this is going to be confusing for any users who are used to the OOTB People WP. If you check the behaviour of the OOTB People WP in SP, you will see that the cursor changes to a pointer on hover. This makes it clear that there is additional functionality available. The same is true for the OOTB People WP in Teams. If you hover over anyone's name in chat for example, you will see that the cursor changes to a pointer before bringing up the people card. Its not really a problem for me to implement in a custom fashion, I just added the style to my custom stylesheet in my Web Part SPFx solution and it works fine, but I wanted you to be aware. |
That's a great point @agaskelluk that the cursor changes to a pointer on hover for both people WP in SP and people WP in teams, however in a 1:1 chat messages in Teams, we see our intended behavior as per our design review where on hover on a person, the cursor does not change to a pointer. |
Yes I see that behaviour as well in a 1:1 chat. OK at least we are all aware. Thanks for the response. |
In this case, then you could specifically target the click personCardInteraction and add the pointer to that. Something like adding |
@Mnickii yes I am sure we could target the onclick event only, but IMHO this will be confusing for my users who are used to seeing feedback in the OOTB SharePoint WP onhover event, so I will stick with my customization of both the onclick and onhover events. |
I'll have to lean on @agaskelluk side here. When looking at the ODSP People WP, I'd say this is the closest behavior we're replicating here. I would argue it should have a cursor pointer (same behavior in Outlook, BTW). I'm of with approving and merging this one. |
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.
Works great!
@agaskelluk this should get merged this week. We're preparing a version so it might get publish soon. Thanks! |
Closes #2651
PR Type
Bugfix
Description of the changes
The mgt-person component should have a cursor of type pointer display when mouse over event occurs on the mgt-person component if it is equipped with either a Person Card Hover or Person Card Click.
I have updated the mgt-person.scss styles to include this property.
Current workaround is to set your own mouse pointer style via custom css every time.
PR checklist
yarn build
) and changes have been tested in at least two supported browsers (Edge + non-Chromium based browser)yarn setLicense
)Other information