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

feat!: Use CSS to specify field cursors. #8648

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Nov 6, 2024

The basics

The details

Resolves

Proposed Changes

This PR removes the CURSOR field from fields, and instead uses CSS to specify which cursor should be used for which fields. This directly fixes #8319. #2885 and #2884 are old bugs proposing adding options to inject classes into fields and refactoring the CURSOR field, which I believe are obsolete in light of the move to CSS. All core fields now add a class specifying the type of field, and custom field subclasses can also easily do this. As a result, users should be able to use CSS to customize the appearance of fields in general and their cursors in particular.

#995 was incidentally fixed here, since now that we're using CSS to specify cursors, it's trivial to specify the grabby cursor for fields when their parent block is being dragged.

@gonfunko gonfunko requested a review from a team as a code owner November 6, 2024 20:20
@github-actions github-actions bot added breaking change Used to mark a PR or issue that changes our public APIs. PR: feature Adds a feature labels Nov 6, 2024
Copy link
Contributor

@cpcallen cpcallen left a comment

Choose a reason for hiding this comment

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

That is an excellent ratio of bugs fixed to delta lines.

@gonfunko gonfunko merged commit 7bbbb95 into google:rc/v12.0.0 Nov 11, 2024
11 checks passed
@gonfunko gonfunko deleted the field-cursors branch November 11, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Used to mark a PR or issue that changes our public APIs. PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants