Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Commit

Permalink
fix props table margin (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
redallen authored Oct 31, 2019
1 parent 115605a commit d61df04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gatsby-theme-patternfly-org/components/propsTable.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.ws-props-table:not(:last-child) {
margin-bottom: var(--pf-global--spacer--lg);
}
3 changes: 2 additions & 1 deletion gatsby-theme-patternfly-org/components/propsTable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { ExclamationCircleIcon } from '@patternfly/react-icons';
import './propsTable.css';

const renderType = prop => {
if (prop.type) {
Expand All @@ -20,7 +21,7 @@ const renderType = prop => {

// This component is only for our React components
const PropsTable = ({ caption, propList }) => (
<table className="pf-c-table pf-m-compact pf-m-grid-md" role="grid" aria-label="Properties for a component">
<table className="ws-props-table pf-c-table pf-m-compact pf-m-grid-md" role="grid" aria-label="Properties for a component">
<caption>{caption}</caption>
<thead>
<tr>
Expand Down

0 comments on commit d61df04

Please sign in to comment.