-
Notifications
You must be signed in to change notification settings - Fork 601
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
Components with flex items should be aligned on cross axis. #5435
Conversation
Perhaps we can bundle this change with the visual refresh that @khamudom is working on to reduce random style changes if we're worried it might interfere with existing implementations? |
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.
Thanks @alphashr!
The visual changes are going to be a major version which means that this fix would only be available once updating - I think it's worthwhile to not wait for that. |
@EisenbergEffect I'm going to merge this later, ideally it fixes a number of problems for folks - it could bit a few that solved this locally, but LGTM for the most part. Let me know if you have hesitations with merging this. |
@alphashr thanks for your patience on this - getting this merged once the build passes :) |
Thank you @alphashr! |
📖 Description
Many components use
inline-flex
for their layout. Couple of these components such asbutton
usestart
,content
andend
slot in their template. These slots need to be aligned on the cross axis.The issue gets more obvious when a control with default look sits next to a same control with an icon or svg within control's start slot or end slot.
🎫 Issues
#5414
👩💻 Reviewer Notes
This PR is created to discuss alternative solutions as well. So feel free to comment if you have any objection on the approach.
📑 Test Plan
I am not sure if it breaks any prior usage by users. Maybe they faced this issue and fixed it manually like what has mentioned here? Even in that case this change wouldn't break their custom styling.
✅ Checklist
General
$ yarn change
Component-specific
⏭ Next Steps
None.