How do I remove blue “selected” outline on buttons?

前端 未结 4 1870
迷失自我
迷失自我 2020-11-30 10:33

I have some buttons using

4条回答
  •  心在旅途
    2020-11-30 11:21

    You can remove the blue outline by using outline: none.

    However, I would highly recommend styling your focus states too. This is to help users who are visually impaired.

    Check out: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#navigation-mechanisms-focus-visible. More reading here: http://outlinenone.com

提交回复
热议问题