Skip to content

Commit cc2c5d7

Browse files
Merge pull request #1335 from SpareBank1/add-spacing-tabgroup-example
fix(component-overview): legg til spacing i eksempel
2 parents dfc2268 + 918b2c6 commit cc2c5d7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

component-overview/examples/tabs/TabGroup-advanced.jsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import { IconCard } from '@sb1/ffe-cards-react';
88
display: 'none',
99
};
1010

11+
const spacing = {
12+
marginTop: '8px',
13+
};
14+
1115
const loan = { house: 'house', car: 'car' };
1216
const [activeTabId, setActiveTabId] = useState(loan.house);
1317

@@ -34,7 +38,7 @@ import { IconCard } from '@sb1/ffe-cards-react';
3438
<IconCard
3539
icon={<HusIkon />}
3640
id={loan.house}
37-
style={activeTabId === loan.house ? null : displayNone}
41+
style={activeTabId === loan.house ? spacing : displayNone}
3842
>
3943
{({ Title, Subtext }) => (
4044
<>
@@ -47,7 +51,7 @@ import { IconCard } from '@sb1/ffe-cards-react';
4751
<IconCard
4852
icon={<BilIkon />}
4953
id={loan.car}
50-
style={activeTabId === loan.car ? null : displayNone}
54+
style={activeTabId === loan.car ? spacing : displayNone}
5155
>
5256
{({ Title, Subtext }) => (
5357
<>

0 commit comments

Comments
 (0)