bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Tables: Hover effect

Open Merg1255 opened this issue 14 years ago • 39 comments

Could version 2.x include a mouse hover effect when hovering over table items? thanks

Merg1255 avatar Feb 02 '12 13:02 Merg1255

+1

wsanter avatar Feb 04 '12 11:02 wsanter

Added in 2.0.1-wip.

mdo avatar Feb 05 '12 10:02 mdo

This sort of sucks if you want to use the table styles but hover on each individual cell or not hover at all while using custom cell/row backgrounds. It's impossible to override the hover effect on the row.

Could this be moved into a separate mixin, e.g. table-row-hover?

nragaz avatar Feb 20 '12 16:02 nragaz

I agree with @nragaz. Don't understand why this is not a separate mixin or controllable, now I cannot have tables without hovering

ghost avatar Feb 22 '12 17:02 ghost

also agree with @nragaz... I personally very much dislike the effect and would rather see it as an "opt in" kind of option.

ghost avatar Feb 29 '12 14:02 ghost

+1 @nragaz

mattjmorrison avatar Feb 29 '12 14:02 mattjmorrison

+1 @nragaz

madisona avatar Feb 29 '12 16:02 madisona

+1 @nragaz

alvioshki avatar Mar 01 '12 13:03 alvioshki

I would like an option to remove the hover too !

keacode avatar Mar 20 '12 00:03 keacode

+1

pixelyunicorn avatar Mar 20 '12 01:03 pixelyunicorn

+1

dtuite avatar Mar 21 '12 00:03 dtuite

+1

juliendsv avatar Mar 26 '12 15:03 juliendsv

+1

samsamm777 avatar Mar 30 '12 09:03 samsamm777

submitted a PR for this. https://github.com/twitter/bootstrap/pull/2875

samsamm777 avatar Mar 30 '12 09:03 samsamm777

+1 on separating the hover property. This is overwriting any customization of table row color.

Does anybody know of a workaround? (without modifying the bootstrap source?)

justin808 avatar Apr 18 '12 09:04 justin808

As a temporary and not semantic solution, you can try to put your rows inside <thead> if you don't want the hover effect.

chhuang avatar Apr 19 '12 23:04 chhuang

I copied the table definitions from .table to .table-no-hover and I use that for now. Hopefully, I can remove that in the future.

justin808 avatar Apr 19 '12 23:04 justin808

+dutchatheist Just override it for now.

.table tbody tr:hover td, .table tbody tr:hover th { background-color: <whatever you want>; }

I sincerely thank +markdotto and the others for sharing bootstrap, it is awesome. I do share in your frustration that one person asked for a feature and it happend and many many more asked for it to be a choosable option and it hasn't happened, but I'm sure you'll get what you want faster with a more constructive request.

madisona avatar May 03 '12 14:05 madisona

+madisona

That doesn't remove the effect, only makes it behave as if it wasn't there (i.e. transparent).

And as a side note, I was stunned by the appearant disregard of continuing Bootstrap's (re)usability, not the fact that they do something for only one person. I don't see a problem with the latter if the request is reasonable. It's the implementation of the issue I find lacking.

Oh and about constructive requests, I must be a real degenerate but if I read the comments above (dating back more then 2 months ago), nothing will get faster with nice fluffy questions either.

I do agree about the negativity I used to show my frustration; removed

cleentfaar avatar May 03 '12 14:05 cleentfaar

+1 @nragaz

WittyPleb avatar May 12 '12 14:05 WittyPleb