-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Pullquote block: use hooks + API v2 #26068
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
Conversation
|
Size Change: -1.03 kB (0%) Total Size: 1.19 MB
ℹ️ View Unchanged
|
7b08e85 to
a5dfe3f
Compare
| const { setTextColor } = this.props; | ||
| function pullQuoteTextColorSetter( colorValue ) { | ||
| setTextColor( colorValue ); | ||
| this.wasTextColorAutomaticallyComputed = false; |
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.
Should we use a ref for this?
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.
Yes, looks like I forgot some of this.* :)
ntsekouras
left a comment
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
|
Thanks for checking! This is the only block we have that derives some data from the block's className, which must now be retrieved from |
This feels like a code smell to me. I think stuff like |
Description
How has this been tested?
Screenshots
Types of changes
Checklist: