diff --git a/src/components/useList/components/ListItemView/ListItemView.scss b/src/components/useList/components/ListItemView/ListItemView.scss index a7c0574c60..e17c47f2fd 100644 --- a/src/components/useList/components/ListItemView/ListItemView.scss +++ b/src/components/useList/components/ListItemView/ListItemView.scss @@ -6,6 +6,7 @@ $block: '.#{variables.$ns}list-item-view'; flex-shrink: 0; &__main-content { + width: 100%; display: grid; gap: var(--g-spacing-half, 2px); } diff --git a/src/components/useList/components/ListItemView/ListItemView.tsx b/src/components/useList/components/ListItemView/ListItemView.tsx index 029a9c0ca8..1c6b3010a4 100644 --- a/src/components/useList/components/ListItemView/ListItemView.tsx +++ b/src/components/useList/components/ListItemView/ListItemView.tsx @@ -2,7 +2,6 @@ import React from 'react'; import {Check, ChevronDown, ChevronUp} from '@gravity-ui/icons'; -import {QA_DATA_ATTR} from '../../../../constants'; import {Icon} from '../../../Icon'; import {Text, colorText} from '../../../Text'; import {Flex, spacing} from '../../../layout'; @@ -89,7 +88,6 @@ const renderSafeIndentation = (indentation?: number) => { export const ListItemView = React.forwardRef( ( { - qa, id, as = 'div', size = 'm', @@ -121,7 +119,7 @@ export const ListItemView = React.forwardRef( return ( - + {hasSelectionIcon && ( diff --git a/src/constants.ts b/src/constants.ts index 87057716be..97396f5e8a 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -9,5 +9,3 @@ export const KeyCode = { ARROW_UP: 'ArrowUp', ARROW_DOWN: 'ArrowDown', }; - -export const QA_DATA_ATTR = 'data-qa';