From 03b5dbfbe68abf98de3407643140ddb226379d51 Mon Sep 17 00:00:00 2001 From: u4aew Date: Mon, 16 Dec 2024 12:17:46 +0300 Subject: [PATCH 1/3] feat(Select): add title for option (#1994) --- .../Select/components/SelectList/OptionWrap.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Select/components/SelectList/OptionWrap.tsx b/src/components/Select/components/SelectList/OptionWrap.tsx index 054aa99f8f..83654556af 100644 --- a/src/components/Select/components/SelectList/OptionWrap.tsx +++ b/src/components/Select/components/SelectList/OptionWrap.tsx @@ -20,8 +20,12 @@ type OptionWrapProps = { }; const DefaultOption = ({option}: DefaultOptionProps) => { - const {content, children, disabled} = option; - return {content || children}; + const {content, children, disabled, title} = option; + return ( + + {content || children} + + ); }; export const OptionWrap = (props: OptionWrapProps) => { From 19ca365acde4fb5b467e9ac36a373a6ea5def728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D1=81=D0=B5=D0=BD=D0=B8=D1=8F?= <31247233+kseniya57@users.noreply.github.com> Date: Tue, 17 Dec 2024 06:58:42 +0300 Subject: [PATCH 2/3] feat(styles): manage animations by user settings (#1996) Co-authored-by: kseniyakuzina --- styles/styles.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/styles/styles.scss b/styles/styles.scss index 7783e114d6..606042482b 100644 --- a/styles/styles.scss +++ b/styles/styles.scss @@ -73,3 +73,18 @@ :root:has(body.g-root_theme_dark-hc) { color-scheme: dark; } + +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + /* stylelint-disable-next-line declaration-no-important */ + scroll-behavior: auto !important; + /* stylelint-disable-next-line declaration-no-important */ + transition-duration: 0.001ms !important; + /* stylelint-disable-next-line declaration-no-important */ + animation-duration: 0.001ms !important; + /* stylelint-disable-next-line declaration-no-important */ + animation-iteration-count: 1 !important; + } +} From d6cda6ebf38216da1eac56e3b87343603cf29c63 Mon Sep 17 00:00:00 2001 From: Daria Larionova Date: Wed, 18 Dec 2024 15:22:41 +0300 Subject: [PATCH 3/3] fix(Icon): remove redundant color:inherit style (#1999) --- src/components/Icon/Icon.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Icon/Icon.scss b/src/components/Icon/Icon.scss index edc60f0841..533e12a5c0 100644 --- a/src/components/Icon/Icon.scss +++ b/src/components/Icon/Icon.scss @@ -3,7 +3,6 @@ $block: '.#{variables.$ns}icon'; #{$block} { - color: inherit; line-height: 0; vertical-align: top; }