angular-base-apps icon indicating copy to clipboard operation
angular-base-apps copied to clipboard

Position Action Sheet

Open rmsint opened this issue 9 years ago • 3 comments

What would you advise to position an Action Sheet? For buttons that are on the edge of the screen the positioning should be changed ie. to the right to prevent the menu being cutoff.

For a project at my company we just upgraded to 2.x, thanks a lot for continuing this project!

Maybe something similar as md-position-mode of the angular material menu is possible for the Action Sheet?

rmsint avatar Sep 21 '16 11:09 rmsint

@rmsint Used dropdown from foundation 5 for similar case.

tolyo avatar Sep 21 '16 20:09 tolyo

I'm actually quite surprised that position right and left are not supported for action sheets. I'll leave this issue open for anyone that wants to add support for that.

@rmsint In the meantime you can position action sheets with the following CSS:

.action-sheet {
  transform: translateX(-70px) translateY(20px); // position body
  &::before, &::after {
    left: 10%;  // position arrow
  }
}

I used this solution to position the menu dropdowns on https://parents.fiboart.com

soumak77 avatar Sep 23 '16 17:09 soumak77

Thanks a lot, the link is a nice example! Interesting to see in action how you solved it. Offtopic: also how you switch between a menu bar and offcanvas menu for mobile navigation is very nice.

rmsint avatar Oct 06 '16 07:10 rmsint