Skip to content

.btn-link has border-color: transparent why? #27220

@719media

Description

@719media

I've looked for the reasoning behind adding border-color: transparent to the :hover and :focus states of .btn-link

@include hover {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
background-color: transparent;
border-color: transparent;
}
&:focus,
&.focus {
text-decoration: $link-hover-decoration;
border-color: transparent;
box-shadow: none;
}

but cannot find the reason for this. I came across this when trying to utilize some custom border styles on .btn-link and had the borders turn transparent on hover because of this.

Blame points to the change being introduced in #22951, but it isn't obvious to me the reasoning behind this rule. I propose removing it.

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