Skip to content

Fix order of buttons in .modal-footer to match html markup #181

@nikku

Description

@nikku

Currently buttons in the modal dialog appear in the reverse order than the one specified in the html markup:

<div class="modal-footer">
    <a href="#" class="btn">Button 1</a>
    <a href="#" class="btn">Button2</a>
</div>

Would yield Button2 Button 1 in a modal dialog. This results in the buttons being selected from right to left when tabbing through the document focusable elements.

This can be fixed by giving the .modal-footer a text-align: right CSS property and removing the float: right property from the buttons child elements.

.modal-footer {
    .btn {
        float: right;
    }
}

to

.modal-footer {
    text-align: right;
    .btn {

    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions