Skip to content

Commit ebd4944

Browse files
authored
RI-7242: Change the tooltip title size from S to XS (#4844)
* Change the tooltip title size from S to XS * adding small gap to separate the title from the content * import render and screen from test-utils, as every render needs to be wrapped in the theme provider when uses theme functionalities
1 parent f5cbd69 commit ebd4944

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

redisinsight/ui/src/components/base/tooltip/HoverContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ interface RiTooltipContentProps {
99
}
1010

1111
export const HoverContent = ({ title, content }: RiTooltipContentProps) => (
12-
<Col>
13-
{title && <Title size="S">{title}</Title>}
12+
<Col gap="s">
13+
{title && <Title size="XS">{title}</Title>}
1414
{content}
1515
</Col>
1616
)

redisinsight/ui/src/pages/browser/modules/key-details/components/change-editor-type-button/ChangeEditorTypeButton.spec.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react'
2-
import { render, screen } from '@testing-library/react'
32

4-
import { userEvent } from 'uiSrc/utils/test-utils'
3+
import { render, screen, userEvent } from 'uiSrc/utils/test-utils'
54
import ChangeEditorTypeButton from './ChangeEditorTypeButton'
65

76
const mockSwitchEditorType = jest.fn()

0 commit comments

Comments
 (0)