Skip to content

Standard BS modal #8

Open
Open

Description

@mila76

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

Activity

  1. Script47 commented on Jan 16, 2022

    @Script47
    Owner

    @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/

  2. self-assigned this
    on Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions