fix(ui-toolkit): add margin to playground tab headers
This commit is contained in:
parent
882085a170
commit
f388e52549
@ -2,6 +2,7 @@ import React, { Component } from 'react';
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import is from 'styled-is';
|
import is from 'styled-is';
|
||||||
import remcalc from 'remcalc';
|
import remcalc from 'remcalc';
|
||||||
|
import { Margin } from 'styled-components-spacing';
|
||||||
|
|
||||||
const Wrapper = styled.section``;
|
const Wrapper = styled.section``;
|
||||||
|
|
||||||
@ -124,6 +125,7 @@ class Playground extends Component {
|
|||||||
return (
|
return (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<Tabs>
|
<Tabs>
|
||||||
|
<Margin right={5}>
|
||||||
<TabHeader active={tab === 'component'}>
|
<TabHeader active={tab === 'component'}>
|
||||||
<Button
|
<Button
|
||||||
active={tab === 'component'}
|
active={tab === 'component'}
|
||||||
@ -132,6 +134,7 @@ class Playground extends Component {
|
|||||||
{(propCode.split(nameRegex)[1] || 'Component').split(/\s/g)[0]}
|
{(propCode.split(nameRegex)[1] || 'Component').split(/\s/g)[0]}
|
||||||
</Button>
|
</Button>
|
||||||
</TabHeader>
|
</TabHeader>
|
||||||
|
</Margin>
|
||||||
{states.length
|
{states.length
|
||||||
? states.map((state, i) => (
|
? states.map((state, i) => (
|
||||||
<TabHeader active={tab === state} key={`tabHeader${i}`}>
|
<TabHeader active={tab === state} key={`tabHeader${i}`}>
|
||||||
|
Loading…
Reference in New Issue
Block a user