-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
);
};
@@ -381,21 +371,19 @@ export const Example_11 = () => {
refContainer.current?.submit();
}}
>
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/react-ui-validations/stories/ValidationContainer.stories.tsx b/packages/react-ui-validations/stories/ValidationContainer.stories.tsx
index d8896d0f9e5..d1e832d7a57 100644
--- a/packages/react-ui-validations/stories/ValidationContainer.stories.tsx
+++ b/packages/react-ui-validations/stories/ValidationContainer.stories.tsx
@@ -2,7 +2,14 @@ import React from 'react';
import { Meta } from '@storybook/react';
import { Button, Gapped, Input } from '@skbkontur/react-ui';
-import { text, ValidationContainer, ValidationInfo, ValidationsFeatureFlagsContext, ValidationWrapper } from '../src';
+import {
+ text,
+ tooltip,
+ ValidationContainer,
+ ValidationInfo,
+ ValidationsFeatureFlagsContext,
+ ValidationWrapper,
+} from '../src';
export default {
title: 'ValidationContainer',
@@ -70,32 +77,87 @@ export const WithWrapperError = () => (
>
);
-export const WithWrapperErrorWithoutSpan = () => (
-
-
+export const WithWrapperErrorWithDivWrapper = () => (
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ TOOLTIP
+
+
+
+
+);
-
-
-
-
+export const DarkTheme = () => {
+ return (
+
+
+
-
+
-
-
-
-
-);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/packages/react-ui-validations/tests/ValidationContainer.test.tsx b/packages/react-ui-validations/tests/ValidationContainer.test.tsx
index b90947bbbba..d611930ade0 100644
--- a/packages/react-ui-validations/tests/ValidationContainer.test.tsx
+++ b/packages/react-ui-validations/tests/ValidationContainer.test.tsx
@@ -33,9 +33,9 @@ describe('ValidationContainer', () => {
expect(screen.getByTestId('passed-container')).toBeInTheDocument();
});
- it('renders passed data-tid on container when validationsRemoveExtraSpans enabled', () => {
+ it('renders passed data-tid on container when validationsDivWrapper enabled', () => {
render(
-
+
@@ -45,9 +45,9 @@ describe('ValidationContainer', () => {
expect(screen.getByTestId('passed-container')).toBeInTheDocument();
});
- it('not renders passed data-tid on container when validationsRemoveExtraSpans enabled', () => {
+ it('renders passed data-tid on container when validationsDivWrapper enabled', () => {
render(
-
+
@@ -55,7 +55,7 @@ describe('ValidationContainer', () => {
,
);
- expect(screen.queryByTestId('passed-container')).toBeNull();
+ expect(screen.queryByTestId('passed-container')).toBeInTheDocument();
});
it('renders passed children', () => {