You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Action sheet button shortens when highlighted #5828
Click and hold down on the "Delete" button in the action sheet. When the button is highlighted, it shortens.
While still holding the mouse button down, move off the "Delete" button. When the button highlight is removed, the button goes back to its original height.
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Obviously seems to be a CSS issue. Doesn't occur in the other UI types (Android, Windows).
Which Ionic Version? 1.x or 2.x
2.x
Run ionic info from terminal/cmd prompt: (paste output below)
Hello! Thanks for opening an issue with us! I think this might be because the borders get removed when the button is :active on the ios theme. On android and windows there are no borders on the buttons in the action sheet, so this is why they don't look shorter when active on those platforms.
There must be something wrong with the demo then, because I'm getting wrong behavior there. Alternate between these two screen shots, you can clearly see it move:
@brandyscarney I confirm this is a real issue. I created the PR for the improved action-sheet css and something is broken for safari in the last version.
Activity
jgw96 commentedon Mar 17, 2016
Hello! Thanks for opening an issue with us! I think this might be because the borders get removed when the button is :active on the ios theme. On android and windows there are no borders on the buttons in the action sheet, so this is why they don't look shorter when active on those platforms.
aparajita commentedon Mar 17, 2016
That may be why it's happening, but it's clearly undesirable behavior. Why remove the border? It could just be changed to the highlight color.
bensperry commentedon Mar 17, 2016
@aparajita This is what iOS native action sheet does. We are simply mimicking the native experience for action sheet.
brandyscarney commentedon Mar 17, 2016
I'm not seeing this at all. Before clicking the height of the button is
57px:with the
activatedclass it is58pxbut it hasmargin-top: -1pxso it really appears as57px:Putting them side by side:
I'm going to close this issue because I don't see anything wrong with it, please let me know if we're misunderstanding you. 😄
aparajita commentedon Mar 17, 2016
There must be something wrong with the demo then, because I'm getting wrong behavior there. Alternate between these two screen shots, you can clearly see it move:
manucorporat commentedon Mar 17, 2016
@brandyscarney I confirm this is a real issue. I created the PR for the improved action-sheet css and something is broken for safari in the last version.
Please reopen, I think I know what is going on.
manucorporat commentedon Mar 17, 2016
I have a fix!
fix(action-sheet): action sheet button shortens when activated in Safari
manucorporat commentedon Mar 17, 2016
@brandyscarney @bensperry in safari the buttons have a non 0 margin (not sure why) this normalizes how the buttons are rendered in safari and chrome.
the change does not affect how it looks in my chrome.
#5867
but please, merge it locally and verify it fixes it
brandyscarney commentedon Mar 17, 2016
Thanks for the PR @manucorporat. We were looking in Chrome so that explains it! I'll take a look at it soon. 😄
aparajita commentedon Mar 17, 2016
@brandyscarney Sorry for not stating that it was in Safari at the beginning. I should have checked on Chrome myself.
brandyscarney commentedon Mar 21, 2016
@aparajita It's fine! We really should be testing Safari more. Thanks for finding and reporting it! 😄
brandyscarney commentedon Mar 21, 2016
I merged the PR from @manucorporat. This will be fixed on the site once we release beta.4 and update the demos.
Thanks again, everyone!