How to remove focus around buttons on click

后端 未结 30 1078
遇见更好的自我
遇见更好的自我 2020-12-02 04:24

My buttons all have a highlight around them after I click them. This is in Chrome.

\"Unselected\"

30条回答
  •  旧巷少年郎
    2020-12-02 05:13

    This worked for me. I created a custom class which overrides the necessary CSS.

    .custom-button:focus {
        outline: none !important;
        border: none !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }
    

    The -webkit-box-shadow will work for Chrome and safari browsers.

提交回复
热议问题