From f4e8ad5849fd160ce6ae8db831c6145aad438d00 Mon Sep 17 00:00:00 2001 From: "ilia.brauer" Date: Tue, 21 Oct 2025 12:00:16 +0200 Subject: [PATCH 1/3] [tooltip] fixed popper content announcing --- semcore/tooltip/CHANGELOG.md | 6 ++++++ semcore/tooltip/src/Tooltip.jsx | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/semcore/tooltip/CHANGELOG.md b/semcore/tooltip/CHANGELOG.md index db602eeb3b..fea49a1219 100644 --- a/semcore/tooltip/CHANGELOG.md +++ b/semcore/tooltip/CHANGELOG.md @@ -2,6 +2,12 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/). +## [16.0.11] - 2025-10-30 + +### Fixed + +- Tooltip popper content are not announced by SR in chrome. + ## [16.0.10] - 2025-10-06 ### Changed diff --git a/semcore/tooltip/src/Tooltip.jsx b/semcore/tooltip/src/Tooltip.jsx index 5fbbea2008..5feb4d9958 100644 --- a/semcore/tooltip/src/Tooltip.jsx +++ b/semcore/tooltip/src/Tooltip.jsx @@ -162,11 +162,11 @@ function TooltipPopper(props) { if (visible) { timer = setTimeout(() => { setIsVisible(true); - }, timeoutConfig[0] + 50); + }, timeoutConfig[0] + 150); } else { timer = setTimeout(() => { setIsVisible(false); - }, timeoutConfig[1] + 50); + }, timeoutConfig[1] + 150); } return () => { From f93000cbf6844cc370c24193be0f3e789307727a Mon Sep 17 00:00:00 2001 From: Valeryia Zimnitskaya Date: Thu, 23 Oct 2025 18:58:45 +0200 Subject: [PATCH 2/3] [tooltip] add test story --- .../tooltip/tests/Tooltip.stories.tsx | 5 +++ .../tests/examples/validation-error.tsx | 34 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 stories/components/tooltip/tests/examples/validation-error.tsx diff --git a/stories/components/tooltip/tests/Tooltip.stories.tsx b/stories/components/tooltip/tests/Tooltip.stories.tsx index 62b8e1f30e..b5bca0033a 100644 --- a/stories/components/tooltip/tests/Tooltip.stories.tsx +++ b/stories/components/tooltip/tests/Tooltip.stories.tsx @@ -4,6 +4,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite'; import TooltipInteractionsExample from './examples/basic_usage'; import InteractiveInTooltipsExample from './examples/interactive-in-tooltip'; import TooltipStatesExample from './examples/tooltip-styles'; +import ValidationErrorsExample from './examples/validation-error'; const meta: Meta = { title: 'Components/Tooltip/Tests', @@ -24,3 +25,7 @@ export const TooltipStates: Story = { export const TooltipInteractions: Story = { render: TooltipInteractionsExample, }; + +export const ValidationErrors: Story = { + render: ValidationErrorsExample, +}; diff --git a/stories/components/tooltip/tests/examples/validation-error.tsx b/stories/components/tooltip/tests/examples/validation-error.tsx new file mode 100644 index 0000000000..ce972039f3 --- /dev/null +++ b/stories/components/tooltip/tests/examples/validation-error.tsx @@ -0,0 +1,34 @@ +import { Box, Flex } from '@semcore/ui/base-components'; +import Button from '@semcore/ui/button'; +import Radio, { RadioGroup } from '@semcore/ui/radio'; +import Tooltip from '@semcore/ui/tooltip'; +import React from 'react'; + +const Demo = () => { + const [isVisible, setIsVisible] = React.useState(false); + + return ( + + + + + + + Choose option! + + + + + + ); +}; + +export default Demo; + +export const App = () => ; From 1238c747cd329c2308ea9d74b3408e9443fb14b0 Mon Sep 17 00:00:00 2001 From: ilyabrower Date: Fri, 24 Oct 2025 15:26:13 +0200 Subject: [PATCH 3/3] Update semcore/tooltip/CHANGELOG.md Co-authored-by: Valeria-Zimnitskaya Signed-off-by: ilyabrower --- semcore/tooltip/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semcore/tooltip/CHANGELOG.md b/semcore/tooltip/CHANGELOG.md index fea49a1219..837f2cd997 100644 --- a/semcore/tooltip/CHANGELOG.md +++ b/semcore/tooltip/CHANGELOG.md @@ -6,7 +6,7 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel ### Fixed -- Tooltip popper content are not announced by SR in chrome. +- The tooltip popper content is not announced by screen readers in Chrome. ## [16.0.10] - 2025-10-06