Skip to content

Commit

Permalink
refactor(HelpPopover): use gravity icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Raubzeug committed Feb 2, 2024
1 parent 4024223 commit 5fab917
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 31 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
* @amje @ValeraS @korvin89
/src/components/FilePreview @KirillDyachkovskiy
/src/components/FormRow @ogonkov
/src/components/HelpPopover @Raubzeug
/src/components/PlaceholderContainer @Marginy605
/src/components/PromoSheet @Avol-V
/src/components/SharePopover @niktverd
Expand Down
1 change: 1 addition & 0 deletions src/components/HelpPopover/HelpPopover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $block: '.#{variables.$ns}help-popover';
#{$block} {
&__button {
@include mixins.button-reset();
color: var(--g-color-text-hint);
}

&__button:focus-visible {
Expand Down
5 changes: 2 additions & 3 deletions src/components/HelpPopover/HelpPopover.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React from 'react';

import {CircleQuestion} from '@gravity-ui/icons';
import {Icon, Popover} from '@gravity-ui/uikit';
import type {PopoverProps, QAProps} from '@gravity-ui/uikit';

import {block} from '../utils/cn';

import {QuestionMarkIcon} from './QuestionMarkIcon';

import './HelpPopover.scss';

const b = block('help-popover');
Expand All @@ -26,7 +25,7 @@ export function HelpPopover(props: HelpPopoverProps) {
{...props.buttonProps}
className={b('button', props.buttonProps?.className)}
>
<Icon data={QuestionMarkIcon} size={ICON_SIZE} />
<Icon data={CircleQuestion} size={ICON_SIZE} />
</button>
</Popover>
);
Expand Down
28 changes: 0 additions & 28 deletions src/components/HelpPopover/QuestionMarkIcon.tsx

This file was deleted.

0 comments on commit 5fab917

Please sign in to comment.