Skip to content

Support <a> tag for close button? #26853

@ysds

Description

@ysds

The _close.scss contains .disabled class and text-decoration: none; and etc, it seems that close buttons support <a>.

&:not(:disabled):not(.disabled) {
@include hover-focus {
color: $close-color;
text-decoration: none;
opacity: .75;
}

However, there is no document or demo about <a> anywhere. Also the style of disabled close button issue will be fixed in v4.1.2 (#26654), it works well with <button>, but does not work with <a>. Demo: https://codepen.io/anon/pen/KBwaLv

If Bootstrap don't support a close button with <a>, we can clean up that CSS.

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