I have somewhat weird requirement, which is making ion-segments show vertically. So far I’ve tried something like following but with no luck. Any ideas or suggestions?
It is positioned vertically now, however if I switch to mobile view in chrome debugging, second option becomes unclickable (cannot change to ENEMIES segment anymore).
So it basically works in full screen mode, but once I switch to mobile view or put my app to android emulator I cannot switch between options… Any idea why?
Nope, display:block is the only css added to ion-segment… You can try it your self, its pretty simple to reproduce… Have no idea why its not working… If you reload page you can choose one and after that component just stop working…
yes i have tried, but i can able to change the value of ion-segment any number of times. Just try same thing in any other component. I think this issue is not happening because of ion-segment.
Once app starts (in chrome) open developer tools (F12)
Change mode to mobile view (Ctrl+Shitf+M)
Going between segments is not working anymore. Btw thx for your effort so far, this glitch really drives me insane…
***** EDIT *****
I’ve tried same thing using Ionic 3.9.9 and this works just fine… It seems that Ionic 5 changes broke this… Any idea where can I post an issue regarding this?
Recently had the same (in ionic 4 made ion-segment vertical), but then moved to Ionic 5 and realized ion-segment now features ux to drag n pull the selector…so it is a bad practice trying to turn a screwdriver into a hammer…
I replaced it with just vertical column of ion-buttons with their fill property bound to state and it worked great.