Fix NotTranslatedPropsTest issue (GroupButton empty title)

This commit is contained in:
Alexey Safronov 2023-04-12 14:50:39 +04:00
parent 8c5ada9507
commit 36fa63c947
2 changed files with 4 additions and 2 deletions

View File

@ -162,7 +162,7 @@ class GroupButton extends React.Component {
{label}
</StyledDropdownToggle>
)}
{isSeparator && <Separator title="" />}
{isSeparator && <Separator />}
</StyledGroupButton>
);
}

View File

@ -84,7 +84,9 @@ const Caret = styled.div`
`}
`;
const Separator = styled.div`
const Separator = styled.div.attrs(() => ({
title: "",
}))`
vertical-align: middle;
border: ${(props) => props.theme.groupButton.separator.border};
width: ${(props) => props.theme.groupButton.separator.width};