Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230805

Ion-toggle size Ionic4

$
0
0

Some options to try, flavour to taste.

ion-toggle {
  zoom: 0.8;
}

Or, to address your specific issue on last post, being you can customise/adjust these 3 css defs:

  • .toggle-icon - width and height adjusts the size of the toggle track
  • .toggle-inner - width and height change the size of the toggle selector that slides in the track
  • .toggle-checked .toggle-inner. - transform: translate3d(27px, 0, 0) 1st arg changes the position of the button when pressed.

I am actually in the process of experimenting for fit. Please let me know if/what works for you.


Viewing all articles
Browse latest Browse all 230805

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>