billpull / knockout-bootstrap

A plugin that adds custom bindings for twitter bootstrap objects such as tooltips and popovers.
233 stars 69 forks source link

Close button in Popover title #9

Open littlefyr opened 11 years ago

littlefyr commented 11 years ago

It would be a good idea if you added another option that would add the close icon to the title. I find it odd to see it in the body of the popover... if you're going to use one.

ArthurClemens commented 10 years ago

I've added this to my less file to "fix" it:

.ko-popover {
    button.close {
        position: absolute;
        top: 15px;
        right: 20px;

        &:active,
        &:focus {
            outline: none;
        }
    }
}