Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/Content/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { cloneElement } from 'react';
import { array, bool, oneOf, string } from 'prop-types';
import Container from 'components/Container/Container';
import Heading from 'components/Heading/Heading';
import styles from './Content.module.css';

Content.propTypes = {
backgroundImageSource: string,
Expand Down Expand Up @@ -45,7 +44,7 @@ function Content({
>
{title && <Heading text={title} hasTitleUnderline={hasTitleUnderline} headingLevel={3} />}

<div className={styles.columnsContainer}>
<div className="flex justify-center items-center flex-wrap w-full [&>*]:m-4">
{/* eslint-disable-next-line react/no-array-index-key */}
{columns.map((column, index) => cloneElement(column, { key: index }))}
</div>
Expand Down
13 changes: 0 additions & 13 deletions components/Content/Content.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,3 @@
justify-content: center;
margin: 1rem auto;
}

.columnsContainer {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 100%;
}

/* the individual columns */
.columnsContainer > * {
margin: 1rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports[`Content should render with many props assigned 1`] = `
</h3>
</div>
<div
className="columnsContainer"
className="flex justify-center items-center flex-wrap w-full [&>*]:m-4"
>
<div>
<p>
Expand All @@ -65,7 +65,7 @@ exports[`Content should render with required props 1`] = `
className="content"
>
<div
className="columnsContainer"
className="flex justify-center items-center flex-wrap w-full [&>*]:m-4"
>
<div>
<p>
Expand Down