-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed odd trapezoid-like underline on active tab in Tabs compone…
…nt (#2377)
- Loading branch information
1 parent
f029e8e
commit 8a32af8
Showing
5 changed files
with
69 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
@mixin nav-tabs-link-focus($border-color) { | ||
@mixin nav-tabs-link-focus( | ||
$border-color, | ||
$radius: $nav-tabs-border-radius, | ||
$distance: $nav-tabs-link-distance-to-border | ||
) { | ||
position: relative; | ||
outline: 0; | ||
z-index: map-get($map: $indexes, $key: 1); | ||
|
||
&::before { | ||
content: ""; | ||
position: absolute; | ||
top: calc(#{$nav-tabs-link-distance-to-border} * -1); | ||
right: calc(#{$nav-tabs-link-distance-to-border} * -1); | ||
bottom: calc(#{$nav-tabs-link-distance-to-border} * -1); | ||
left: calc(#{$nav-tabs-link-distance-to-border} * -1); | ||
top: calc(#{$distance} * -1); | ||
right: calc(#{$distance} * -1); | ||
bottom: calc(#{$distance} * -1); | ||
left: calc(#{$distance} * -1); | ||
border: solid $nav-tabs-border-width $border-color; | ||
border-radius: $nav-tabs-border-radius; | ||
border-radius: $radius; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters