How to set color of toggle buttons

后端 未结 5 689
春和景丽
春和景丽 2020-12-24 14:10

I have group of toggle buttons. They are very light and disappear in the background on poor monitors with a high brightness level.

How can I properly style

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 14:41

    mat-button-toggle-group {
      box-shadow: none;
    }
    
    mat-button-toggle {
        border: 1px rgba(0,0,0,0) solid !important;
        margin-top: 5px !important;
        padding: 0 5px !important;
        z-index: 3 !important;
    }
    
    mat-button-toggle:hover {
        border: 1px #000 solid !important;
        background-color: #FFF !important;
        border-radius: 5px !important;
    }
    
    .mat-button-toggle-checked {
    	  box-shadow: 0 0 30px #000 !important;
        border: 1px #000 solid !important;
        border-radius: 5px !important;
        background-color: #FFF !important;
    }
    
    .mat-button-toggle-input {
        background-color: none !important;
        padding-left: 32px !important;
    }

    if you only want to change the style of checked

提交回复
热议问题