Skip to content

Commit

Permalink
fix: DateRangePicker hover effect overflow (ant-design#27731)
Browse files Browse the repository at this point in the history
* fix: DateRangePicker hover effect overflow

* fix: update rtl style
  • Loading branch information
AlanCutFlim authored Nov 12, 2020
1 parent 57246c5 commit 652374f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/date-picker/style/panel.less
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,12 @@
.@{picker-prefix-cls}-date-panel
&-in-view&-in-range&-range-hover-start
.@{cellClassName}::after {
right: -6px - @border-width-base;
right: -5px - @border-width-base;
left: 0;
}
.@{picker-prefix-cls}-date-panel &-in-view&-in-range&-range-hover-end .@{cellClassName}::after {
right: 0;
left: -6px - @border-width-base;
left: -5px - @border-width-base;
}

// Hover with range start & end
Expand Down
4 changes: 2 additions & 2 deletions components/date-picker/style/rtl.less
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@
.@{cellClassName}::after {
.@{picker-prefix-cls}-panel-rtl & {
right: 0;
left: -6px - @border-width-base;
left: -5px - @border-width-base;
}
}

.@{picker-prefix-cls}-date-panel &-in-view&-in-range&-range-hover-end .@{cellClassName}::after {
.@{picker-prefix-cls}-panel-rtl & {
right: -6px - @border-width-base;
right: -5px - @border-width-base;
left: 0;
}
}
Expand Down

0 comments on commit 652374f

Please sign in to comment.