1

in several browsers I have square around radio buttons. I managed to solve it using javascript: onfocus="this.blur()", but my web app is build with gwt and gxt, and I don't know how to apply this to my Radio button;

Vadym Kovalenko
  • 699
  • 1
  • 11
  • 27
  • try this in CSS: `input, input[type="radio"] {border: 0; outline: none;}` – i-- Mar 07 '13 at 14:11
  • also removing focus from element you are focusing on sounds like a wrong thing to do, especially when you want to tab thru elements – i-- Mar 07 '13 at 14:15
  • I've tried even this: input[type="radio"] { outline: none !important; border: 0px !important; outline-style: none !important; } but id doesn't help. I still have a square in firefox on ubuntu – Vadym Kovalenko Mar 07 '13 at 14:24
  • Ok, i solved it just setting focus to other element – Vadym Kovalenko Mar 07 '13 at 15:02

1 Answers1

1

You can remove focus by passing false to setFocus method.

button.setFocus(false);  

see this

Community
  • 1
  • 1
Suresh Atta
  • 120,458
  • 37
  • 198
  • 307