jquery-confirm icon indicating copy to clipboard operation
jquery-confirm copied to clipboard

No camel case for buttons?

Open Zhaiyk opened this issue 6 years ago • 2 comments

I implemented few small functions but my button text is coming all CAPS, looked up documentation and see no function to set it to camel case. Would be good addition.

Zhaiyk avatar Feb 21 '19 21:02 Zhaiyk

Hi, I would like same thing :) Thank you for this great jquery !

Hizoka76 avatar Mar 06 '19 15:03 Hizoka76

2 solutions: 1) css file .NoUpperCase { text-transform: none !important; }

jquery file:

$.alert(
{
    title: "test",
    content: "test",
    buttons:
    {
        OK:
        {
            text: "test",
            btnClass: 'btn-green NoUpperCase'
        }
    }
});

Edit the jquery-confirm.css: Comment the line 619:

.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button,
.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button
{
/*     text-transform: uppercase; */
    font-size: 14px;
    font-weight: bold;
    text-shadow: none;
}

Hizoka76 avatar Jun 08 '20 10:06 Hizoka76