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

Popover: Use anchor instead of anchorRef in story #67674

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Dec 6, 2024

What?

Fixes a warning in the Popover stories.

Why?

The anchor prop is recommended in favor of the deprecated anchorRef.
Found while working on #67574.

How?

We're updating the story to reflect that anchor is now recommended in favor of the deprecated anchorRef prop.

Testing Instructions

  • Open the Popover > All Placements story
  • Verify the anchorRef prop warning no longer appears

Testing Instructions for Keyboard

Same

Screenshots or screencast

Warning before this PR:

Screenshot 2024-12-06 at 11 08 03

@tyxla tyxla added [Type] Enhancement A suggestion for improvement. [Package] Components /packages/components Storybook Storybook and its stories for components labels Dec 6, 2024
@tyxla tyxla requested review from Mamaduka, t-hamano and a team December 6, 2024 09:08
@tyxla tyxla self-assigned this Dec 6, 2024
@tyxla tyxla requested a review from ajitbohra as a code owner December 6, 2024 09:08
Copy link

github-actions bot commented Dec 6, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: tyxla <[email protected]>
Co-authored-by: Mamaduka <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

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

Thanks, @tyxla!

This matches the patterns used in the editor ✅

@tyxla tyxla merged commit b6cfa1e into trunk Dec 6, 2024
72 of 74 checks passed
@tyxla tyxla deleted the fix/popover-anchorref-story branch December 6, 2024 10:24
@github-actions github-actions bot added this to the Gutenberg 19.9 milestone Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components Storybook Storybook and its stories for components [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants