-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: Action sheet icon is not centered on MD #26249
Comments
@twoco thank you for this issue. I looked into why this was added and it isn't very clear. It was 4+ years ago and likely to align the content with other UI in the action sheet. Those changes seem to no longer apply. We will track this as a bug. |
Hey there, Here is a dev build with a proposed fix if you are interested in testing:
|
Thanks, I don't need to test. It's already in my fixes.scss ^^ |
Thanks for the report. This has been resolved via #26256, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
Currently the icon in action sheet appears not centered. After debugging I found the following:
ionic-framework/core/src/components/action-sheet/action-sheet.md.scss
Line 81 in 1a0b9ed
Why 4px padding? I removed it and voila, it's good center.
Expected Behavior
Icon should be centered.
Steps to Reproduce
Create action sheet with icons in md mode and see that the icon are slighly moved up / not centered. Inspect that icon and see that there is 4px padding at the bottom. Wonder why.
Current

Expected (fixed by removed padding)

Code Reproduction URL
ionic-framework/core/src/components/action-sheet/action-sheet.md.scss
Line 81 in 1a0b9ed
Ionic Info
Ionic Angular 6.2.6. But just see the source code on GitHub. There is padding for unknown reason.
Additional Information
No response
The text was updated successfully, but these errors were encountered: