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 is from 'styled-is';
|
||||
import remcalc from 'remcalc';
|
||||
import { Margin } from 'styled-components-spacing';
|
||||
|
||||
const Wrapper = styled.section``;
|
||||
|
||||
@ -124,6 +125,7 @@ class Playground extends Component {
|
||||
return (
|
||||
<Wrapper>
|
||||
<Tabs>
|
||||
<Margin right={5}>
|
||||
<TabHeader active={tab === 'component'}>
|
||||
<Button
|
||||
active={tab === 'component'}
|
||||
@ -132,6 +134,7 @@ class Playground extends Component {
|
||||
{(propCode.split(nameRegex)[1] || 'Component').split(/\s/g)[0]}
|
||||
</Button>
|
||||
</TabHeader>
|
||||
</Margin>
|
||||
{states.length
|
||||
? states.map((state, i) => (
|
||||
<TabHeader active={tab === state} key={`tabHeader${i}`}>
|
||||
|
Loading…
Reference in New Issue
Block a user