Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DaryaLari committed Dec 5, 2024
1 parent 331589a commit 7e3cc93
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/shared/constants/qa/dash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export enum FixedHeaderQa {
StaticFixedHeaderGroupContent = 'static-fixed-header-group-content',
HidableFixedHeaderGroupWrapper = 'hidable-fixed-header-group-wrapper',
HidableFixedHeaderGroupContent = 'hidable-fixed-header-group-content',

Container = 'dash-fixed-header-containter',
Controls = 'dash-fixed-header-controls',
}

export enum DashRelationTypes {
Expand Down
4 changes: 2 additions & 2 deletions src/ui/units/dash/containers/Body/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ class Body extends React.PureComponent<BodyProps> {
<DropdownMenu
switcherWrapperClassName={b('fixed-header-settings-switcher')}
renderSwitcher={(props) => (
<Button {...props} view="raised" size="xl" width="max" pin="brick-round">
<Button {...props} view="raised" size="xl" width="max" pin="round-brick">
<Icon size={16} data={Gear} />
</Button>
)}
Expand Down Expand Up @@ -684,7 +684,7 @@ class Body extends React.PureComponent<BodyProps> {
view="flat"
size="xl"
width="max"
pin="brick-round"
pin="round-brick"
title={i18n(
'dash.main.view',
isCollapsed ? 'tooltip_expand-fixed-group' : 'tooltip_collapse-fixed-group',
Expand Down
2 changes: 1 addition & 1 deletion src/ui/units/dash/containers/FixedHeader/FixedHeader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
&__controls-settings {
width: 20px;
position: absolute;
left: calc(-1 * var(--dash-inline-padding));
right: calc(-1 * var(--dash-inline-padding));
top: var(--g-spacing-2);
}

Expand Down
3 changes: 1 addition & 2 deletions src/ui/units/dash/containers/FixedHeader/FixedHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export const FixedHeaderControls: React.FC<FixedHeaderControlsProps> = ({
return (
<React.Fragment>
<div
data-qa={FixedHeaderQa.StaticFixedHeaderGroupContent}
className={b('controls', {
'edit-mode': editMode,
hidden: isEmpty && !editMode,
Expand Down Expand Up @@ -142,7 +141,7 @@ export const FixedHeaderContainer: React.FC<FixedHeaderContainerProps> = ({

return (
<div
data-qa={FixedHeaderQa.HidableFixedHeaderGroupContent}
data-qa={FixedHeaderQa.Container}
className={b('container', {
'edit-mode': editMode,
hidden: isEmpty && !editMode,
Expand Down

0 comments on commit 7e3cc93

Please sign in to comment.