From 0ff29f835586eed2b9a238ee7a91a8d803a659c7 Mon Sep 17 00:00:00 2001 From: Yevhen Martynenko Date: Thu, 18 Jul 2024 17:26:14 +0300 Subject: [PATCH] *fix sass nested rules --- packages/ui/src/Checkbox.module.scss | 4 ++-- packages/ui/src/Slider.module.scss | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/ui/src/Checkbox.module.scss b/packages/ui/src/Checkbox.module.scss index d4aafc2d0..7b9998daf 100644 --- a/packages/ui/src/Checkbox.module.scss +++ b/packages/ui/src/Checkbox.module.scss @@ -9,12 +9,12 @@ box-sizing: border-box; overflow: hidden; + @include c.typographyBodySmall; + * { box-sizing: border-box; } - @include c.typographyBodySmall; - // hide native checkbox input { @include h.visuallyHidden; diff --git a/packages/ui/src/Slider.module.scss b/packages/ui/src/Slider.module.scss index 271353018..e3e4e00bf 100644 --- a/packages/ui/src/Slider.module.scss +++ b/packages/ui/src/Slider.module.scss @@ -111,12 +111,6 @@ ul.markDescriptions { margin: $thumbWidth 0; input[type='range'] { - &::-webkit-slider-runnable-track, - &::-webkit-slider-thumb, - & { - appearance: none; - } - z-index: c.$zIndex100; outline: none; background: none; @@ -132,6 +126,12 @@ ul.markDescriptions { margin: 0; justify-self: center; + &::-webkit-slider-runnable-track, + &::-webkit-slider-thumb, + & { + appearance: none; + } + // Style the track &::-webkit-slider-runnable-track { @include track;