Skip to content

Commit

Permalink
feat(blog): remove fix position
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-jpg committed Nov 30, 2023
1 parent de1356f commit 6495e4e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/components/OnboardingGuide/Guide/Guide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ $space-s: 12px;
$space-l: 20px;

#{$block} {
position: fixed;
right: 24px;
bottom: 24px;
z-index: $layer-popup;

min-width: min-content;
Expand Down Expand Up @@ -48,8 +45,6 @@ $space-l: 20px;

&__titl-text {
font-family: var(--typography-font-family);

font-size: var(--g-text-subheader-3-font-size);
line-height: var(--g-text-subheader-3-line-height-rel);
font-size: var(--g-text-subheader-2-font-size);
letter-spacing: 0;
Expand All @@ -66,11 +61,7 @@ $space-l: 20px;

margin-bottom: $space-2-xs;

<<<<<<< HEAD
color: var(--g-color-text-light-primary);
=======
color: var(--g-color-text-dark-primary);
>>>>>>> c8bdf08 (feat(Guide): add Guide)
}

&__title_state_expanded {
Expand Down
2 changes: 1 addition & 1 deletion src/components/OnboardingGuide/Guide/Guide.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {ReactNode} from 'react';
import React from 'react';
import type {ReactNode} from 'react';

Check failure on line 2 in src/components/OnboardingGuide/Guide/Guide.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Please use import React from 'react' instead

import {Icon, Progress} from '@gravity-ui/uikit';
import {SVGIconData} from '@gravity-ui/uikit/build/esm/components/Icon/types';
Expand Down
14 changes: 14 additions & 0 deletions src/components/OnboardingGuide/Guide/__stories__/Guide.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,19 @@ WithItems.args = {
>
{[addText('Тестовый текст')]}
</GuideMenuItem>,
<GuideMenuItem
key={'testItem'}
title="Тестовый элемент"
buttons={[
<Button view="normal" size="m" onClick={actionsButtonHandlers} key={'rollUp'}>
Кнопка 3
</Button>,
<Button view="normal" size="m" key={'сomplete'} onClick={actionsButtonHandlers}>
Кнопка 4
</Button>,
]}
>
{[addText('Тестовый текст')]}
</GuideMenuItem>,
],
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {ReactNode} from 'react';
import React, {useMemo, useState} from 'react';

Check failure on line 1 in src/components/OnboardingGuide/GuideMenuItem/GuideMenuItem.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Please use import React from 'react' instead

Check failure on line 1 in src/components/OnboardingGuide/GuideMenuItem/GuideMenuItem.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Please use import React from 'react' instead
import type {ReactNode} from 'react';

Check failure on line 2 in src/components/OnboardingGuide/GuideMenuItem/GuideMenuItem.tsx

View workflow job for this annotation

GitHub Actions / Verify Files

Please use import React from 'react' instead

import {Clock} from '@gravity-ui/icons';
import {ArrowToggle, Checkbox, Icon} from '@gravity-ui/uikit';
Expand Down

0 comments on commit 6495e4e

Please sign in to comment.