Page 1 of 1

New Component Toggleswitch not visible

Posted: 08 Aug 2018, 16:45
by undermensch
Toggleswitch does not seem to be currently supported by the premium themes. Correct?

Re: New Component Toggleswitch not visible

Posted: 09 Aug 2018, 08:59
by mert.sincan
@huseyinT, could you please check this issue with PF6.2.8 jar?

Re: New Component Toggleswitch not visible

Posted: 09 Aug 2018, 09:13
by huseyinT
Thanks, we will fix it.

Re: New Component Toggleswitch not visible

Posted: 10 Aug 2018, 10:50
by huseyinT
You could apply this sass code :

Code: Select all

.ui-toggleswitch-slider {
        -webkit-transition: background-color .3s, box-shadow .2s;
        transition: background-color .3s, box-shadow .2s;
        background: #cccccc;
        &:before {
          background-color: #ffffff;
        }
      }
      
      .ui-toggleswitch-focus .ui-toggleswitch-slider {
        -moz-box-shadow: 0px 0px 5px #c0c0c0;
        -webkit-box-shadow: 0px 0px 5px #c0c0c0;
        box-shadow: 0px 0px 5px #c0c0c0;
      }
      
      .ui-toggleswitch {
        &:not(.ui-state-disabled):hover .ui-toggleswitch-slider {
          background-color: #b7b7b7;
        }
        &.ui-toggleswitch-checked {
          .ui-toggleswitch-slider {
            background-color: #628292;
          }
          &:not(.ui-state-disabled):hover .ui-toggleswitch-slider {
            background-color: #2d5265;
          }
        }
      }

Re: New Component Toggleswitch not visible

Posted: 15 Jan 2019, 16:18
by undermensch
This seems to still not be fixed in the latest release 1.0.4. No ui-toggleswitch classes appear in the _forms.scss, nothing in the generated css. Thanks.

Re: New Component Toggleswitch not visible

Posted: 17 Jan 2019, 13:47
by mert.sincan
Sorry for the delayed response. Please try the new version(1.0.5).

Best Regards,