Skip to content

Commit

Permalink
Refactor/link (#1278)
Browse files Browse the repository at this point in the history
* link Mobile Component

* create link doc

* fix: lint fix

* fix: link hover style

* fix: update link style

* feat: create link style
  • Loading branch information
brianzhang authored Apr 17, 2023
1 parent bb08d0d commit 1ded939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions style/mobile/components/link/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
.@{link}__suffix-icon {
font-size: @@iconSize;
}
.@{link}__prefix-icon {
margin-left: @link-icon-margin;
}
.@{link}__suffix-icon {
margin-right: @link-icon-margin;
}
}
}

Expand Down Expand Up @@ -83,9 +77,11 @@

&__prefix-icon:not(:empty) + &__content:not(:empty) {
padding-left: 4px;
display: inherit;
}

&__content:not(:empty) + &__suffix-icon:not(:empty) {
padding-left: 4px;
display: inherit;
}
}
2 changes: 1 addition & 1 deletion style/mobile/components/link/v2/_var.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

@link-content-medium-font-size: 14px;
@link-content-medium-line-height: 22px;
@link-icon-medium-font-size: 14px;
@link-icon-medium-font-size: 16px;

@link-content-large-font-size: 16px;
@link-content-large-line-height: 24px;
Expand Down

0 comments on commit 1ded939

Please sign in to comment.