bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Minor usability problem in Docs re Icons

Open DBPreston opened this issue 14 years ago • 6 comments

Icon classes are echoed via CSS in the Docs. This renders the descriptive text unable to be searched for in the browser by both Chrome 16 and IE 9.

This is maybe a browser bug, but it doesn't help me find a specific icon.

DBPreston avatar Feb 06 '12 11:02 DBPreston

You also can't select them for copying. Tested in Chrome 16.

SiCoUK avatar Feb 06 '12 17:02 SiCoUK

Confirmed its impossible to copy and paste the icon names from the docs - are we just being lazy though :-)

PhilETaylor avatar Feb 06 '12 17:02 PhilETaylor

@SiCoUK You are quite right - I should have mentioned that.

DBPreston avatar Feb 06 '12 17:02 DBPreston

FWIW Neither Firefox 10 nor Opera 11 will allow copying of this text either, so at least they are all consistent. (Even though Opera sort of allows it to be selected, then it deselects instantly so no copying there either.)

I assume it's because this text isn't in the HTML source. I suppose you could have whole paragraphs of text in CSS this way - wonder if the search engines can see it/index it...

DBPreston avatar Feb 06 '12 17:02 DBPreston

Yeah, I didn't want to have to manually edit any of those class names alongside the icons, so I cheated and used :after and content. I'll swing back around to this so it's searchable—would really help and I've fallen victim to it twice already :).

mdo avatar Feb 10 '12 16:02 mdo

Resolved in 2.0.1-wip.

mdo avatar Feb 12 '12 23:02 mdo