Skip to content

Commit 24df569

Browse files
authored
fix: tabs block centered with tabsColSizes (#1108)
* fix: tabs block centered with tabsColSizes
1 parent 72cb2fa commit 24df569

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/blocks/Tabs/Tabs.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Title from '../../components/Title/Title';
1111
import {getHeight} from '../../components/VideoBlock/VideoBlock';
1212
import YFMWrapper from '../../components/YFMWrapper/YFMWrapper';
1313
import {useTheme} from '../../context/theme';
14-
import {Col, GridColumnOrderClasses, Row} from '../../grid';
14+
import {Col, GridColumnOrderClasses, GridJustifyContent, Row} from '../../grid';
1515
import {TabsBlockProps} from '../../models';
1616
import {block, getThemedValue} from '../../utils';
1717
import {mergeVideoMicrodata} from '../../utils/microdata';
@@ -22,6 +22,7 @@ import './Tabs.scss';
2222

2323
const b = block('tabs-block');
2424

25+
// eslint-disable-next-line complexity
2526
export const TabsBlock = ({
2627
items,
2728
title,
@@ -149,7 +150,7 @@ export const TabsBlock = ({
149150
subtitle={description}
150151
className={b('title', {centered: centered})}
151152
/>
152-
<Row>
153+
<Row justifyContent={centered ? GridJustifyContent.Center : undefined}>
153154
<Col sizes={tabsColSizes}>
154155
<ButtonTabs
155156
items={tabs}

0 commit comments

Comments
 (0)