bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Twipsy instances do not appear within a modal

Open brendanmcoffey opened this issue 15 years ago • 6 comments

Hovering over text causes the twipsy tooltip to show up but it is not visible anywhere. http://jsfiddle.net/csenV/2/

brendanmcoffey avatar Nov 07 '11 15:11 brendanmcoffey

On line 332 of 1.4 bootstrap.min.css, I changed z-index:1000; to z-index:9099; The change worked on a regular form and a modal form. Note that I am using jQuery UI's dialog.

Try changing .twipsy z-index in 2.0-wip to see if it works

DragonI avatar Nov 13 '11 19:11 DragonI

In 1.4 there is this line

.modal .popover, .modal .twipsy { z-index: 12000; }

but still it doesn't fix my issue, so I override the main .twipsy z-index class from 1000 to 12000 for it to show.

voidnothings avatar Nov 24 '11 19:11 voidnothings

i think this is because twipsy.js adds the twipsy div at the top of the body, ".modal .twipsy" is never a valid selector. Changing the z-index on just the .twipsy fixes this (default is only 1000), but then twipsy divs will always be above any modal z-index, which I'm not sure is correct behavior

note, this bug also applies to popovers too, as it relies on twipsy.js

garza avatar Dec 03 '11 23:12 garza

Somebody already fixed this?

Edit: Never mind, the @garza suggestion is absolutely right.

endel avatar Dec 13 '11 16:12 endel

We have the same problem and yes, garza is exactly right. The workaround we used is to write:

body div.twipsy{ z-index: 12000; }

In order to properly fix it, they need to implement #651

chytanya avatar Jan 03 '12 20:01 chytanya

Resolved in 2.0-wip. I've added some popovers and twipsies to the demo modal in the js docs page there to help test how those things are layered for the future.

mdo avatar Jan 07 '12 12:01 mdo