Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz-theme-default): text alignment in table thead (#403)
Browse files Browse the repository at this point in the history
* fix(docz-theme-default): remove text align left

* fix(docz): include text align left for thead
  • Loading branch information
marceloavf authored and pedronauck committed Oct 27, 2018
1 parent 829a3aa commit 475eb52
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/docz-theme-default/src/components/ui/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const TableStyled = styled('table')`
}
& thead th {
text-align: left;
font-weight: 400;
padding: 20px 20px;
Expand Down
14 changes: 12 additions & 2 deletions packages/docz/src/components/PropsTable.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 475eb52

Please sign in to comment.