fix(docz-theme-default): text alignment in table thead (#403)

* fix(docz-theme-default): remove text align left

* fix(docz): include text align left for thead
This commit is contained in:
Marcelo Formentão
2018-10-27 11:23:50 -03:00
committed by Pedro Nauck
parent 829a3aa4c2
commit 475eb52e52
2 changed files with 12 additions and 3 deletions

View File

@@ -32,7 +32,6 @@ const TableStyled = styled('table')`
}
& thead th {
text-align: left;
font-weight: 400;
padding: 20px 20px;

View File

@@ -1,10 +1,20 @@
import * as React from 'react'
import { Fragment, SFC, ComponentType } from 'react'
import { CSSProperties, Fragment, SFC, ComponentType } from 'react'
import { withMDXComponents } from '@mdx-js/tag/dist/mdx-provider'
import capitalize from 'capitalize'
import { humanize } from '../utils/humanize-prop'
export interface StylesMap {
[s: string]: CSSProperties
}
const styles: StylesMap = {
thead: {
textAlign: 'left'
},
}
export interface EnumValue {
value: string
computed: boolean
@@ -122,7 +132,7 @@ const BasePropsTable: SFC<PropsTable> = ({ of: component, components }) => {
return (
<Fragment>
<Table className="PropsTable">
<Thead>
<Thead style={styles.thead}>
<Tr>
<Th className="PropsTable--property">Property</Th>
<Th className="PropsTable--type">Type</Th>