-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
TextHighlight: Convert component to TypeScript #41698
Conversation
Size Change: +8 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
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.
Looks good! The .toHaveTextContent()
thing is not a blocker if you prefer the current approach 🙂
* ); | ||
* ``` | ||
*/ | ||
export const TextHighlight = ( props: TextHighlightProps ) => { |
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.
This is an interesting example of how ref forwarding and using the WordPressComponentProps
type don't make much sense with the current way the component is written (cc @mirka )
Co-authored-by: Lena Morita <lena@jaguchi.com>
Anything else I need to address here? Would love to get a final review after the last commits. |
Hey @walbo ! Lena is currently AFK, and I'm catching up with all the PR review requests that I accumulated during the past week while I was AFK. I'll try to get to this PR (and the others that you have open) as quickly as possible! Thank you for your patience 🙏 |
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 🚀 Thank you!
Thanks for the review! No worries. No rush for me. ;) |
What?
Converts the
TextHighlight
component to TypeScript.Why?
Part of the @wordpress/components's TypeScript migration (#35744).
How?
TextHighlight
to TypeScript.@testing-library/react'
Testing Instructions
TextHighlight
continues to function as expected