bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

[2.0-wip] Enhancement: Hide selection on user click

Open Merg1255 opened this issue 14 years ago • 10 comments

Consider hiding the selection "box" over these areas when the user makes a selection, if this is possible. Have a look at these examples, that normally should be hidden upon user click:

http://i40.tinypic.com/2h2mo2x.png http://i42.tinypic.com/fk09ih.png http://i39.tinypic.com/k53l1j.png http://i44.tinypic.com/280mvk5.png http://i42.tinypic.com/nl7t76.png http://i41.tinypic.com/4gn7nd.png http://i39.tinypic.com/2al01x.png

Thanks

Merg1255 avatar Jan 26 '12 22:01 Merg1255

Since that's pretty easy to see, is there a chance it will be given some more attention for the final release? thanks

Merg1255 avatar Jan 27 '12 00:01 Merg1255

which browser were you using

adrianlee avatar Jan 27 '12 07:01 adrianlee

I don't believe that's possible through CSS? Just a browser implementation (usually on Windows). Correct me if I am wrong though.

dwightwatson avatar Jan 27 '12 09:01 dwightwatson

Shouldn't this be fixable with the following?

a {
   outline: 0;
}

Antariano avatar Jan 27 '12 10:01 Antariano

This outline is an accessibility feature. It is less pronounced in WebKit based browsers IIRC. It can be removed via CSS, but new new alternate styling should be introduced. See: Removing The Dotted Outline, http://outlinenone.com/

rotaris avatar Jan 27 '12 10:01 rotaris

I've just tested this again, in IE8 and Firefox 10 (win machine). Agree, this is a feature, but in some cases it just doesnt look with the rest of the page, especially when having a navbar. How about there could be an option where instead of the dotted outline, the blue radial box appeared when faving focus (like the one in the textarea)?

Merg1255 avatar Jan 27 '12 12:01 Merg1255

but in some cases it just doesnt look with the rest of the page, especially when having a navbar.

Agreed :)

How about there could be an option where instead of the dotted outline, the blue radial box appeared when faving focus (like the one in the textarea)?

Yup, something along those lines. Now someone/we need(s) to implement it.

rotaris avatar Jan 27 '12 13:01 rotaris

I'm glad there's support for this :) I believe it will make TB2 better looking, at least when talking about split buttons.

Possible implementation: add rule that sets the "a outline" as in the message above, and place the same blue radial box as in the textarea.

Merg1255 avatar Jan 27 '12 14:01 Merg1255

Also, this https://github.com/twitter/bootstrap/pull/1220 ties with the topic. So, for some elements like the menu, hide the dotted lines, while for some others, we should implement the blue radial box.

Merg1255 avatar Jan 27 '12 14:01 Merg1255

We won't be removing the outline, and we won't be providing alternate styles for it at this time. Not worth the headache of removing it for everyone and then only enabling it via CSS3 (if you want the box-shadow effect from form inputs), an effect that only works in some browsers.

mdo avatar Jan 27 '12 16:01 mdo