Skip to content

Commit

Permalink
feat(anchor): 锚点组件增加固定模式,修复示例文档bug问题 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxi-20 authored Mar 13, 2023
1 parent 686d7af commit 918cf71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/anchor/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
@anchor-prefix-cls: ~'@{css-prefix}anchor';

.@{anchor-prefix-cls} {
&__wrapper {
.component-css-vars-anchor();
&__affix {
.component-css-vars-anchor();
position: fixed;
z-index: 1;
}

position: relative;
color: var(--ti-anchor-text-color);
font-size: var(--ti-anchor-font-size);
Expand Down

0 comments on commit 918cf71

Please sign in to comment.