[EuiFormRow] Fixes and extra class & [EuiDescribedFormGroup] Sizing fixes and added ratio#5756
Conversation
…tion text - Adds a `<p>` wrapper to description if it’s just a string - Removes all the padding classes that tried to calculate margin based on title size - Adds `alignItems="baseline”` to the flex group adding a pseudo element to form rows that don’t contain labels
*Snapshots no good*
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5756/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5756/ |
|
This PR is reviewable. Just need to find a solution to the snapshot issue using Emotion on components. |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5756/ |
elizabetdev
left a comment
There was a problem hiding this comment.
LGTM! 🎉
Tested in Chrome, Safari, Edge, and Firefox. I also run the code locally to test a few scenarios.
Just need to find a solution to the snapshot issue using Emotion on components.
I tried this locally and if you merge main the snapshot issue gets fixed and you can use Emotion.
Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>
Thanks, yeah I've already reverted back to Sass. There really wasn't much benefit since the rest of the component is still Sass. So I'll just leave it as is until the full conversion. |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5756/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5756/ |
[EuiFormRow]
Fixed calculation of hasEmptyLabelSpace [commit]
The calculation wasn't working with the new Amsterdam line-height.
Added
—hasLabelclass for nested styling [commit]This helped to adjust the field column vertical alignment by faking a line of pseudo text. It does add this class to pretty much all EuiFormRow snapshots 😸 .
[EuiDescribedFormGroup]
Fixed vertical alignment, wrapping of description text [commit]
<p>wrapper to description if it’s just a stringalignItems="baseline”to the flex group adding a pseudo element to form rows that don’t contain labelsAdded
ratioprop [commit]Closes #2540
Need help: Snapshots no goodMoved styles back to SassDocs!
Checklist
[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modes