-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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(Tooltip): replace the height parameter with constraints #163314
Conversation
e9327ea
to
40ae181
Compare
9590a8a
to
054c46f
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Hey @kszczek I think where you have |
Also, I am not sure some of this is written in the way we expect the code to be - if: "height == 'null'"
changes:
- kind: "removeParameter"
name: "height" Does this mean if no height is provided, we should remove height? I think maybe the if here should be |
Hi, thanks for taking a look!
Yes, when the
There are three scenarios in which we want to take action:
Now the ordering of those fixes is important, because if the first condition was not met, then in the remaining two conditionals we can assume that
Let me know if I unnecessarily overcomplicated this fix 😄 |
054c46f
to
129ab89
Compare
It turns out I forgot to mark the This is now properly ready for review. |
Also - a few of the existing tests use the |
d66f209
to
9fb508b
Compare
No, having them in place during the deprecation period ensures we do not break anyone during the deprecation period. :) |
9fb508b
to
6c6ac91
Compare
Introduce a new `constraints` parameter, which constrains the size of the tooltip's message and deprecate the now obsolete `height` parameter. Do the same for the theme data, while also making some minor changes to the docs to clear up some misconceptions about which properties apply to the tooltip's message and which to the tooltip's child. To make the transition from `height` to `constraints` as easy as possible for our users, introduce fix data to do this replacement automatically in the IDE.
6c6ac91
to
a8d0b7a
Compare
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 LGTM, thank you!
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.
Introduce a new
constraints
parameter, which constrains the size of the tooltip's message and deprecate the now obsoleteheight
parameter. Do the same for the theme data, while also making some minor changes to the docs to clear up some misconceptions about which properties apply to the tooltip's message and which to the tooltip's child.To make the transition from
height
toconstraints
as easy as possible for our users, introduce fix data to do this replacement automatically in the IDE.Closes: #163313
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.