bs5-utils
bs5-utils copied to clipboard
Standard BS modal
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
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:

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