Skip to content

Commit

Permalink
fix(BackTop): resoleved border color error (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jun 6, 2023
1 parent c30d196 commit 108d94f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
16 changes: 12 additions & 4 deletions style/mobile/components/back-top/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
border-radius: @back-top-round-border-radius;

&::after {

.hairline(@back-top-round-border-color);

border-radius: @back-top-round-border-radius;
}
}
Expand All @@ -54,10 +51,21 @@
right: 0;

&::after {
border-radius: @back-top-half-round-border-radius 0 0 @back-top-half-round-border-radius;
}
}

&--round,
&--half-round {
&::after {
.hairline(@back-top-round-border-color);
}
}

border-radius: @back-top-half-round-border-radius 0 0 @back-top-half-round-border-radius;
&--round-dark,
&--half-round-dark {
&::after {
.hairline(@back-top-round-dark-border-color);
}
}

Expand Down
1 change: 1 addition & 0 deletions style/mobile/components/back-top/v2/_var.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
@back-top-round-color: var(--td-back-top-round-color, @font-gray-1);
@back-top-round-bg-color: var(--td-back-top-round-bg-color, @font-white-1);
@back-top-round-border-color: var(--td-back-top-round-border-color, @component-border);
@back-top-round-dark-border-color: var(--td-back-top-round-border-color, @font-gray-9);
@back-top-round-border-radius: var(--td-back-top-round-border-radius, @radius-circle);
@back-top-round-dark-color: var(--td-back-top-round-dark-color, @font-white-1);
@back-top-round-dark-bg-color: var(--td-back-top-round-dark-bg-color, @gray-color-14);
Expand Down

0 comments on commit 108d94f

Please sign in to comment.