-
Notifications
You must be signed in to change notification settings - Fork 59
fix: form grid aligns items vertically to the top #2371
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
Conversation
✔️ Deploy Preview for fundamental-styles ready! 🔨 Explore the source changes: 1991ceb 🔍 Inspect the deploy log: https://app.netlify.com/sites/fundamental-styles/deploys/60bf3a1c2881c60007c4ffe1 😎 Browse the preview: https://deploy-preview-2371--fundamental-styles.netlify.app/iframe |
bd5e4ae
to
a6c0577
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.
@sKudum this change is introducing another bug. Now the label and the input are not aligned vertically.
Before:
a6c0577
to
6a9e105
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.
Hi @InnaAtanasova , Please let me know if this approach is acceptable or not, If not then please let me know the suggested approach. Thank You |
d4c0e3b
to
a0e2f78
Compare
7db930d
to
b3f5a6b
Compare
b3f5a6b
to
0a2b060
Compare
@sKudum I think you need to update the images for the tests. Some of them show the label not aligned in the middle. I think it's from the prev commit. You can see the screenshots I denied. |
0a2b060
to
45a2e30
Compare
Hi @InnaAtanasova , As per observation and doing reliazed we don't need to add form-label--horizontal or form-label--compact classes instead added fd-row--top class to fix this issue by which we can avoid breaking any changes. We can remove breaking change from this PR. Please let me know your view on it.Will update accordingly. |
6f6bac2
to
8bfdf93
Compare
It's def a better solution. Thanks for digging more. You still need to add the Breaking changes, tho. It's a new modifier class that needs to be reflected in the implementation libraries. |
Hi @InnaAtanasova , Updated breaking change information. |
fix: addressing inna review comments [ci visual] fix: addressing compact horizontal lablel alignment [ci visual] fix: addressing build issues [ci visual] fix: build issues2 [ci visual]
fix: rebase with main [ci visual]
8bfdf93
to
1991ceb
Compare
Related Issue
Closes #2262
Description
BREAKING CHANGE:
Added a new modifier class to fd-row to achieve even alignment of its elements:
fd-row--top
in a form.Form Grid aligns items vertically to the center when according to the guideline it should align to the top.
When you have more than one column and the number of the fields is not equal for each column fields are aligned to the middle instead of to the top:
According to the guideline it should be aligned to the top:
Screenshots
Before:
After:
Please check whether the PR fulfills the following requirements
rem
fd-*
class is used in the filefd-rtl
,fd-ellipsis
,fd-flex
,fd-selected
,fd-focus
, ect.)fd-reset()
mixin is applied to all elementsnormalize
optionunnormalize
option[ci visual]
so it can trigger chromatic visual regression (e.g.test: run chromatic visual regression [ci visual]
)