bs5-utils icon indicating copy to clipboard operation
bs5-utils copied to clipboard

Standard BS modal

Open mila76 opened this issue 3 years ago • 1 comments

I can't create a "standard" modal (like the ones in boostrap doc) because in modal-header we have border-0 and style.main and in modal-footer style.border. This need to be empty for the standard layout

Maybe registering a new Style is possible to fix but i think is a function needed in default styles

mila76 avatar Jan 15 '22 19:01 mila76

@mila76

Yes - I see your point.

The original intent I had when I added border-0 by default was to make the colors merge better and to also remove a redundant border. I feel that this should be left up to the developer to decide.

In the meantime, to get the "standard" style, you can register and use the following style:

Bs5Utils.registerStyle('default', {
    btnClose: [],
    main: ['border-bottom'],
    border: []
});

which will output a modal as:

image

Live Example: https://jsfiddle.net/uekan6tb/2/

Script47 avatar Jan 16 '22 00:01 Script47