Agu Fortini
Agu Fortini

Reputation: 95

remove border that appears when clicking button

I have a rating form in which when I click on a star, the following border appears:

rating-form

implement the following example: angular-material-star-rating

How can I remove this border?

Upvotes: 2

Views: 2091

Answers (2)

Phat Tran
Phat Tran

Reputation: 3870

To remove the default focus, use the following code:

:focus {
   outline:none;
}

You can then control the focus border color either individually by element

:focus {
   outline:none;
    border:1px solid red
}

Upvotes: 5

Олег Якунин
Олег Якунин

Reputation: 130

Add this rule to the element

outline: none

Upvotes: 2

Related Questions