Skip to content

Commit

Permalink
Replaced all the css into tailwind css on ColorSection component (#1782)
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajit20 authored Dec 5, 2023
1 parent 1f31640 commit faef593
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 2 additions & 3 deletions components/Branding/ColorSection/ColorSection.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { brandColorsObject } from 'common/styles/styleExports';
import Swatch from 'components/Branding/Swatch/Swatch';
import Content from 'components/Content/Content';
import styles from './ColorSection.module.css';

function ColorSection() {
const primaryColor = { name: 'Primary', hexCode: brandColorsObject.primary };
Expand All @@ -23,11 +22,11 @@ function ColorSection() {
theme="white"
columns={[
<div>
<h3 className={styles.centeredText}>Primary</h3>
<h3 className="text-center">Primary</h3>
<Swatch colorName={primaryColor.name} hexCode={primaryColor.hexCode} />
</div>,
<div>
<h3 className={styles.centeredText}>Secondary</h3>
<h3 className="text-center">Secondary</h3>
<Swatch colorName={secondaryColor.name} hexCode={secondaryColor.hexCode} />
</div>,
]}
Expand Down
3 changes: 0 additions & 3 deletions components/Branding/ColorSection/ColorSection.module.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`ColorSection should render with required props 1`] = `
Array [
<div>
<h3
className="centeredText"
className="text-center"
>
Primary
</h3>
Expand All @@ -19,7 +19,7 @@ exports[`ColorSection should render with required props 1`] = `
</div>,
<div>
<h3
className="centeredText"
className="text-center"
>
Secondary
</h3>
Expand Down

2 comments on commit faef593

@vercel
Copy link

@vercel vercel bot commented on faef593 Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on faef593 Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.