Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tooltips,Popover): tips组件把漏掉了边框 #1977 #2083

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion packages/popover/src/popover.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,25 @@
color: #26323d;
background-color: #fff;
box-shadow: 0 0 6px 0 #dcdee5;

border: 1px solid #dcdee5;
.@{bk-prefix}-pop2-arrow {
background-color: #fff;
&[data-arrow='top']{
border-right: 1px solid #dcdee5;
border-bottom: 1px solid #dcdee5;
}
&[data-arrow='right']{
border-left: 1px solid #dcdee5;
border-bottom: 1px solid #dcdee5;
}
&[data-arrow='left']{
border-right: 1px solid #dcdee5;
border-top: 1px solid #dcdee5;
}
&[data-arrow='bottom']{
border-left: 1px solid #dcdee5;
border-top: 1px solid #dcdee5;
}
}
}
}
Expand Down
37 changes: 36 additions & 1 deletion packages/styles/src/mixins/popper.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,46 @@
color: #fff;
background: #333;
border-radius: 4px;

border: 1px solid #dcdee5;
&.light {
color: #63656e;
background: #fff;
box-shadow: rgb(220, 222, 229) 0 0 6px 0;
&[data-popper-placement^='top'] {
.@{bk-prefix}-popper-arrow{
&::before{
border-right: 1px solid #dcdee5;
border-bottom: 1px solid #dcdee5;
}
}
}
&[data-popper-placement^='right'] {
.@{bk-prefix}-popper-arrow{
&::before{
border-left: 1px solid #dcdee5;
border-bottom: 1px solid #dcdee5;
}
}
}
&[data-popper-placement^='left'] {
.@{bk-prefix}-popper-arrow{
&::before{
border-right: 1px solid #dcdee5;
border-top: 1px solid #dcdee5;
}
}
}
&[data-popper-placement^='bottom'] {
.@{bk-prefix}-popper-arrow{
&::before{
border-left: 1px solid #dcdee5;
border-top: 1px solid #dcdee5;
}
}
}
}


.@{bk-prefix}-popper-arrow,
.@{bk-prefix}-popper-arrow::before {
position: absolute;
Expand All @@ -35,6 +68,8 @@
&[data-show] {
display: block;
}


}

.@{bk-prefix}-popper[data-popper-placement^='top']>.@{bk-prefix}-popper-arrow {
Expand Down