Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get rid of this blue halo around the close dialog button with jqueryui?

I am using jquery ui to create a dialog box, importing this style sheet. It has this annoying halo around the close button. I am having trouble getting rid of it because once I click the halo it goes away (some kind of manipulation from jquery ui) -- so I can't see the relevant css rules. I tried to pick the color from a chrome extension (and then search for it in the css file) but once I click it disappears.

How can I make the halo go away? Going back the the default x is fine.

enter image description here

like image 827
bernie2436 Avatar asked Apr 11 '14 00:04

bernie2436


2 Answers

give this a shot:

.ui-button:focus { outline:none !important }
like image 53
MarioD Avatar answered Nov 05 '22 00:11

MarioD


That is indeed caused by the outline property. Chrome and Internet Explorer appear to automatically add an outline to all focused elements. I didn't find anything with Firefox. Here is how you find out using the Chrome Inspector:

enter image description here

enter image description here

If you don't want it to be there all you have to do is target the element with the :focus selector and set the outline:none;.

like image 3
TreeTree Avatar answered Nov 04 '22 22:11

TreeTree