-
Notifications
You must be signed in to change notification settings - Fork 8
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
Clean-up Flex layout align configuration #503
Labels
Comments
m-akinc
added a commit
that referenced
this issue
Jan 4, 2024
## 🤨 Rationale Fixes: #503 ## 👩💻 Implementation Added a button Chromatic test for how buttons align with inline text and images. ## 🧪 Testing New test added. I noticed that the Safari snapshot of the new Chromatic test has unexpected alignment (top of text is aligned with top of buttons). From what I can tell, Chromatic is using version 16 of Safari. I checked the new story in versions 15.x and 17.1, and both rendered with the alignment I would expect (same as other browsers). I also tried it in Playwright's WebKit browser version 16.0, and I still got the expected alignment. I do not know how Chromatic ended up with weird alignment, but I'm satisfied enough that it looks right in all versions of Safari/WebKit I checked. ## ✅ Checklist - [x] I have updated the project documentation to reflect my changes or determined no changes are needed. --------- Co-authored-by: Milan Raj <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🧹 Tech Debt
We had found icons and controls were not aligning property. One workaround was to add the vertical-align: middle property on the button as show here:
nimble/packages/nimble-components/src/patterns/button/styles.ts
Line 37 in 47839b3
In the FAST issue they found an alternate pattern that just changes flex settings: microsoft/fast#5414 (comment)
We should verify that configuration works and propagate it to our controls where it makes sense. We should also add tests focused on validating inline behavior of the controls (ie inline with text and inline-block images, etc).
The text was updated successfully, but these errors were encountered: