+
);
diff --git a/src/components/CompositeBar/HighlightedItem/HighlightedItem.scss b/src/components/CompositeBar/HighlightedItem/HighlightedItem.scss
index b516a2d..9784b85 100644
--- a/src/components/CompositeBar/HighlightedItem/HighlightedItem.scss
+++ b/src/components/CompositeBar/HighlightedItem/HighlightedItem.scss
@@ -11,8 +11,8 @@ $block: '.#{variables.$ns}composite-bar-highlighted-item';
justify-content: center;
&__icon {
- width: 38px;
- height: 38px;
+ width: var(--gn-aside-header-item-icon-background-size);
+ height: var(--gn-aside-header-item-icon-background-size);
border-radius: 7px;
cursor: pointer;
background-color: var(--g-color-base-background);
diff --git a/src/components/CompositeBar/Item/Item.scss b/src/components/CompositeBar/Item/Item.scss
index b5b0c72..1c1f8db 100644
--- a/src/components/CompositeBar/Item/Item.scss
+++ b/src/components/CompositeBar/Item/Item.scss
@@ -4,7 +4,7 @@ $block: '.#{variables.$ns}composite-bar-item';
#{$block} {
$class: &;
- --composite-bar-item-action-size: 36px;
+ --gn-composite-bar-item-action-size: 36px;
display: flex;
width: 100%;
@@ -14,11 +14,20 @@ $block: '.#{variables.$ns}composite-bar-item';
&__icon {
color: var(--g-color-text-misc);
+
+ .#{variables.$ns}footer-item &,
+ .#{variables.$ns}composite-bar-highlighted-item & {
+ color: var(--gn-aside-header-footer-item-icon-color);
+ }
+
+ .#{variables.$ns}composite-bar_subheader & {
+ color: var(--gn-aside-header-subheader-item-icon-color);
+ }
}
&__icon-place {
flex-shrink: 0;
- width: var(--aside-header-min-width);
+ width: var(--gn-aside-header-min-width);
display: flex;
align-items: center;
justify-content: center;
@@ -91,11 +100,11 @@ $block: '.#{variables.$ns}composite-bar-item';
&_type_action {
justify-content: center;
- height: var(--composite-bar-item-action-size);
+ height: var(--gn-composite-bar-item-action-size);
margin: 0 10px 8px;
background: var(--g-color-base-float);
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.03), 0px 5px 6px rgba(0, 0, 0, 0.12);
- border-radius: var(--composite-bar-item-action-size);
+ border-radius: var(--gn-composite-bar-item-action-size);
transition: transform 0.1s ease-out, background-color 0.15s linear;
&:focus {
@@ -117,7 +126,7 @@ $block: '.#{variables.$ns}composite-bar-item';
}
& #{$class}__icon-place {
- width: var(--composite-bar-item-action-size);
+ width: var(--gn-composite-bar-item-action-size);
}
& #{$class}__title {
@@ -154,8 +163,8 @@ $block: '.#{variables.$ns}composite-bar-item';
top: 50%;
left: 50%;
z-index: -1;
- width: 38px;
- height: 38px;
+ width: var(--gn-aside-header-item-icon-background-size);
+ height: var(--gn-aside-header-item-icon-background-size);
margin-top: -19px;
margin-left: -19px;
border-radius: 7px;
@@ -163,7 +172,7 @@ $block: '.#{variables.$ns}composite-bar-item';
}
{$class}_type_action {
- width: var(--composite-bar-item-action-size);
+ width: var(--gn-composite-bar-item-action-size);
& #{$class}__title {
margin: 0;
diff --git a/src/components/CompositeBar/Item/Item.tsx b/src/components/CompositeBar/Item/Item.tsx
index 46c9c78..f0ec330 100644
--- a/src/components/CompositeBar/Item/Item.tsx
+++ b/src/components/CompositeBar/Item/Item.tsx
@@ -5,11 +5,11 @@ import {List, Icon, Popup, PopupPlacement, PopupProps, Tooltip} from '@gravity-u
import {MakeItemParams, MenuItem} from '../../types';
import {getSelectedItemIndex} from '../utils';
+import {ASIDE_HEADER_ICON_SIZE} from '../../constants';
import {
COLLAPSE_ITEM_ID,
POPUP_ITEM_HEIGHT,
POPUP_PLACEMENT,
- ICON_SIZE,
ITEM_TYPE_REGULAR,
} from '../constants';
@@ -105,7 +105,7 @@ export const Item: React.FC
= (props) => {
const current = item.current || false;
const tooltipText = item.tooltipText || item.title;
const icon = item.icon;
- const iconSize = item.iconSize || ICON_SIZE;
+ const iconSize = item.iconSize || ASIDE_HEADER_ICON_SIZE;
const collapsedItem = item.id === COLLAPSE_ITEM_ID;
const onClose = React.useCallback(
diff --git a/src/components/CompositeBar/constants.ts b/src/components/CompositeBar/constants.ts
index f561ff5..d16a43d 100644
--- a/src/components/CompositeBar/constants.ts
+++ b/src/components/CompositeBar/constants.ts
@@ -1,6 +1,5 @@
import {PopupPlacement} from '@gravity-ui/uikit';
-export const ICON_SIZE = 24;
export const ITEM_HEIGHT = 40;
export const ITEM_TYPE_REGULAR = 'regular';
export const COLLAPSE_ITEM_ID = 'collapse-item-id';
diff --git a/src/components/Content/Content.tsx b/src/components/Content/Content.tsx
index 75a3f85..a251e24 100644
--- a/src/components/Content/Content.tsx
+++ b/src/components/Content/Content.tsx
@@ -25,7 +25,7 @@ RenderContent.displayName = 'RenderContent';
export const Content: React.FC = ({
size, // TODO: move to context when MobileHeader will support it
className,
- cssSizeVariableName = '--aside-header-size',
+ cssSizeVariableName = '--gn-aside-header-size',
renderContent,
}) => {
return (
diff --git a/src/components/FooterItem/FooterItem.tsx b/src/components/FooterItem/FooterItem.tsx
index 0e7068f..1ceca8e 100644
--- a/src/components/FooterItem/FooterItem.tsx
+++ b/src/components/FooterItem/FooterItem.tsx
@@ -2,7 +2,7 @@ import React from 'react';
import {block} from '../utils/cn';
import {Item, ItemProps} from '../CompositeBar/Item/Item';
-import {ASIDE_HEADER_FOOTER_ICON_SIZE} from '../constants';
+import {ASIDE_HEADER_ICON_SIZE} from '../constants';
import './FooterItem.scss';
@@ -16,7 +16,7 @@ export const FooterItem: React.FC = ({item, ...props}) => {
return (
-
@@ -98,7 +98,7 @@ export function MobileHeaderShowcase() {
);
}}
>
-
+
);
@@ -129,7 +129,7 @@ export function MobileHeaderShowcase() {
renderFooter: () => (