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: Let workspace comment have delete cursor over trash. #8477

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

johnnesky
Copy link
Member

@johnnesky johnnesky commented Aug 9, 2024

The basics

The details

Resolves

Fixes #8413

Proposed Changes

This removes an obsolete CSS property on the workspace comment top bar that overrides the mouse cursor style to be the grab cursor. Other CSS rules affecting the workspace comment have the same cursor, and additionally switch to a different cursor when dragging over the trash can, so removing this property allows those switches to take effect.

Reason for Changes

The CSS property was added in e4b734c a couple months ago and was necessary at the time because there wasn't any other style at the time that provided the drag cursor for workspace comments. However, 4cdca28 was added more recently and provides the drag cursor for the parent element along with the necessary variations, making the previous commit obsolete.

Test Coverage

I manually tested the mouse cursor behavior for dragging workspace comments over the trash can.

@johnnesky johnnesky requested a review from a team as a code owner August 9, 2024 18:37
@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Aug 9, 2024
@johnnesky johnnesky merged commit 17e4f1c into google:develop Aug 15, 2024
14 checks passed
@johnnesky johnnesky deleted the nesky_cursor branch August 15, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RenderedWorkspaceComments setDeleteStyle not working
2 participants