Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Toggle button design different at runtime

I have created a toggle button css as below

.onoffswitch .ui-slider-switch {height:25px; width:80px !important;background-color: #aaaaad !important;border-color: #aaaaad }
.onoffswitch .ui-slider-label { font-size:12px; }
.onoffswitch .ui-btn-f {height:21px !important;background-color: #353537 !important; border-color:#353537 !important;}

It works at design time but reverts back runtime. See screenshots below..

design...
Image

runtime...
Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Toggle button design different at runtime

Hi Aeneas -

Inspect your CSS styles in browser developer tools, it looks like there are some collisions in styles inheritances.

Aeneas McBurney
Posts: 0
Joined: Mon Jun 16, 2014 7:49 am

Toggle button design different at runtime

Shouldn't this show the same at design time? The display should be consistent and I'm not sure what to check to get it corrected.

Return to “Issues”