Skip to content
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

Closed
4 of 7 tasks
twoco opened this issue Nov 8, 2022 · 5 comments · Fixed by #26256
Closed
4 of 7 tasks

bug: Action sheet icon is not centered on MD #26249

twoco opened this issue Nov 8, 2022 · 5 comments · Fixed by #26256
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@twoco
Copy link

twoco commented Nov 8, 2022

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

Currently the icon in action sheet appears not centered. After debugging I found the following:

@include padding(null, null, 4px, null);

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
current

Expected (fixed by removed padding)
expected

image

Code Reproduction URL

@include padding(null, null, 4px, null);

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

@ionitron-bot ionitron-bot bot added the triage label Nov 8, 2022
@sean-perkins
Copy link
Contributor

@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.

@sean-perkins sean-perkins changed the title bug: Remove weird padding of action sheet icon to center it. bug: Action sheet icon is not centered on MD Nov 9, 2022
@sean-perkins sean-perkins added package: core @ionic/core package type: bug a confirmed bug report labels Nov 9, 2022
@ionitron-bot ionitron-bot bot removed the triage label Nov 9, 2022
@liamdebeasi
Copy link
Contributor

Hey there,

Here is a dev build with a proposed fix if you are interested in testing:

6.3.6-dev.11668031717.1f4524fc

@twoco
Copy link
Author

twoco commented Nov 10, 2022

Thanks, I don't need to test. It's already in my fixes.scss ^^

@liamdebeasi
Copy link
Contributor

Thanks for the report. This has been resolved via #26256, and a fix will be available in an upcoming release of Ionic Framework.

@ionitron-bot
Copy link

ionitron-bot bot commented Dec 11, 2022

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Dec 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants