Repository navigation
Components: add placement prop to replace position in RangeControl - #70326
Conversation
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
0a6649f to
fe76a54
Compare
|
When you have a moment, please review my PR 🙇 |
|
@im3dabasia, can you rebase this branch on top of the latest trunk and add the changelog entry for this internal change? |
7730eb5 to
fc0cf74
Compare
Mamaduka
left a comment
There was a problem hiding this comment.
Thank you, @im3dabasia!
The changes work as expected ✅
…ol` (WordPress#70326) Co-authored-by: im3dabasia <im3dabasia1@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
What?
Part of: #44401
Replaces the
position={...}prop used in the Tooltip styled component with theplacementprop.Why?
Since
Tooltipuses the placement prop after the deprecation of the position prop, it would make sense to have uniformity and consistency in the remaining codebase by using the same placement prop for Tooltip positioning. This instance inRangeControluses a locally madeTooltipand was using the position prop, so I replaced it with placementHow?
This is an internal prop, so I simply changed it from position to placement in the corresponding places
Testing Instructions
Since this is a code quality improvement, it would not have testing as such, but it can be tested in Storybook:
npm run storybook:devRangeControlcomponent