Skip to content

Commit

Permalink
Slider tooltip: fix arrow rendering artefact in some zoom levels (#25986
Browse files Browse the repository at this point in the history
)

Co-authored-by: Alexander Bulychev <[email protected]>
  • Loading branch information
iBat and Alexander Bulychev authored Nov 13, 2023
1 parent 5f5d23c commit c1b91ee
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.dx-overlay-content {
background-color: $tooltip-bg;
color: $tooltip-color;
border: 1px solid transparent;
border-radius: $tooltip-border-radius;
min-height: auto;

Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme/scss/widgets/fluent/tooltip/_sizes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ $fluent-tooltip-arrow-border-radius: 2px !default;
$fluent-tooltip-shadow: 0 0 2px 0 $base-dropdown-shadow-color1 !default;

@if $size == "default" {
$fluent-tooltip-padding: 8px 12px !default;
$fluent-tooltip-padding: 7px 11px !default;
$fluent-tooltip-font-size: 12px;
}

@else if $size == "compact" {
$fluent-tooltip-padding: 4px 6px !default;
$fluent-tooltip-padding: 3px 5px !default;
$fluent-tooltip-font-size: 12px;
}
3 changes: 2 additions & 1 deletion packages/devextreme/scss/widgets/material/slider/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ $material-slider-tooltip-width-without-paddings: $material-slider-tooltip-width
}

.dx-overlay-content {
border: none;
border: 1px solid transparent;
opacity: 0.6;

.dx-popup-content {
line-height: normal;
padding: $material-slider-tooltip-popup-content-padding;

.dx-slider-tooltip-position-top & {
padding-top: 6px;
Expand Down
3 changes: 3 additions & 0 deletions packages/devextreme/scss/widgets/material/slider/_sizes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $material-slider-handle-size: null !default;
$material-slider-wrapper-height: null !default;
$material-slider-tooltip-width: null !default;
$material-slider-top-tooltip-margin: null !default;
$material-slider-tooltip-popup-content-padding: null !default;

$material-slider-track-height: 2px !default;
$material-slider-height: 28px !default;
Expand All @@ -15,11 +16,13 @@ $material-slider-height: 28px !default;
$material-slider-wrapper-height: 32px !default;
$material-slider-tooltip-width: 34px !default;
$material-slider-top-tooltip-margin: -5px !default;
$material-slider-tooltip-popup-content-padding: 5px 7px !default;
}

@else if $size == "compact" {
$material-slider-handle-size: 26px !default;
$material-slider-wrapper-height: 26px !default;
$material-slider-tooltip-width: 28px !default;
$material-slider-top-tooltip-margin: -2px !default;
$material-slider-tooltip-popup-content-padding: 3px 5px !default;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c1b91ee

Please sign in to comment.