mirror of
https://github.com/zhigang1992/docz.git
synced 2026-04-29 09:55:55 +08:00
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:
committed by
Pedro Nauck
parent
829a3aa4c2
commit
475eb52e52
@@ -32,7 +32,6 @@ const TableStyled = styled('table')`
|
||||
}
|
||||
|
||||
& thead th {
|
||||
text-align: left;
|
||||
font-weight: 400;
|
||||
padding: 20px 20px;
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user