Skip to content
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(components): fix cursor state on EmptySelectorButton #16283

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

ncdiehl11
Copy link
Collaborator

Overview

When hovering an enabled EmptySelectorButton, (ex: walking through creating a protocol in PD redesign and adding pipettes/modules), the cursor should be pointer.

Closes RQA-3197

Test Plan and Hands on Testing

  • turn on PD redesign
  • create a new protocol
  • walk through steps and verify that at steps 2 and 4, hovering the active EmptySelectorButton for "Add a pipette and tips" and individual module additions produces a pointer cursor

Changelog

add cursor style to EmptySelectorButton

Review requests

see test plan

Risk assessment

low

When hovering an enabled `EmptySelectorButton`, (ex: walking through creating a protocol in PD
redesign and adding pipettes/modules), the cursor should be `pointer`.

Closes RQA-3197
@ncdiehl11 ncdiehl11 requested review from koji and jerader September 18, 2024 15:53
@ncdiehl11 ncdiehl11 marked this pull request as ready for review September 18, 2024 15:53
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner September 18, 2024 15:53
@@ -41,6 +41,7 @@ export function EmptySelectorButton(
border: none;
width: ${buttonSizing};
height: ${buttonSizing};
cursor: ${disabled ? 'default' : 'pointer'};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you merge edge or rebase, you will be able to use the followings.

Suggested change
cursor: ${disabled ? 'default' : 'pointer'};
cursor: ${disabled ? CURSOR_DEFAULT : CURSOR_POINTER};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Koji

Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm after addressing Koji's comment

@ncdiehl11 ncdiehl11 merged commit 534fb53 into edge Sep 18, 2024
48 checks passed
@ncdiehl11 ncdiehl11 deleted the components_fix-emptyselectorbutton-cursor branch September 18, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants