Closed tujoworker closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
eufemia | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 14, 2024 7:26pm |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
https://github.com/user-attachments/assets/02f7fb2e-8c56-44ab-b7b0-84c1351405c5
When closing, the title/header of the message jumps/shifts upwards a bit. Not very important, but it's noticeable.
https://github.com/user-attachments/assets/02f7fb2e-8c56-44ab-b7b0-84c1351405c5
When closing, the title/header of the message jumps/shifts upwards a bit. Not very important, but it's noticeable.
Also, when pressing the help button the input Field gets focus/active state/styling. Is that intentional and desired? Not sure myself.
the title/header of the message jumps/shifts upwards a bit
This is on purpose. But badly executed. Added a 40ms delay, and now I think it fells perfect.
when pressing the help button the input Field gets focus/active state/styling. Is that intentional and desired?
This is a side effect. It's the "hover effect". First I have tried to have the HelpButton outside the label, but that creates other/larger layout/placement issues. I fear we have no choice. But I will take another look if there is way to avoid that.
Have we added some docs/changelog presenting that the default behavior of the help text/property is now inline(previously a dialog).
Not yet. I think we should add that in #4279
And if some users still want to use the dialog variant, we could add what they need to do.
<Field.String
help={{
title: 'Title',
content: 'Content.',
+ renderAs: 'dialog'
}}
/>
some docs about when we suggest using the dialog variant. You mentioned something in the lines of long texts, etc. Is it only strings that can be provided to the help property? Or React.node's as well?
React.Node
I'm not sure what happened here 🤷 and because it can't be repoened (why?) I create a new one #4282
This PR changes the existing behavior of the
help
prop for Fields that previously supported it. The content now opens inline instead of in a Dialog.The
help
prop has now all of these optional props:Examples with inline "HelpButton":
NB: We do not document the internals of the inline version at this time. This can be included in another PR. The reason is that it would require additional tests, examples, and documentation. It is also an "isolated" feature specific to the HelpButton. However, as of this writing, I am unsure if we will ever document it, as integration is not straightforward. There are several considerations to address when implementing it.