Skip to content

Commit 5fe4e4e

Browse files
committed
Replaced all the css into tailwind css onColorSection component
1 parent 1f31640 commit 5fe4e4e

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

components/Branding/ColorSection/ColorSection.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { brandColorsObject } from 'common/styles/styleExports';
22
import Swatch from 'components/Branding/Swatch/Swatch';
33
import Content from 'components/Content/Content';
4-
import styles from './ColorSection.module.css';
54

65
function ColorSection() {
76
const primaryColor = { name: 'Primary', hexCode: brandColorsObject.primary };
@@ -23,11 +22,11 @@ function ColorSection() {
2322
theme="white"
2423
columns={[
2524
<div>
26-
<h3 className={styles.centeredText}>Primary</h3>
25+
<h3 className="text-center">Primary</h3>
2726
<Swatch colorName={primaryColor.name} hexCode={primaryColor.hexCode} />
2827
</div>,
2928
<div>
30-
<h3 className={styles.centeredText}>Secondary</h3>
29+
<h3 className="text-center">Secondary</h3>
3130
<Swatch colorName={secondaryColor.name} hexCode={secondaryColor.hexCode} />
3231
</div>,
3332
]}

components/Branding/ColorSection/ColorSection.module.css

-3
This file was deleted.

components/Branding/ColorSection/__tests__/__snapshots__/ColorSection.test.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports[`ColorSection should render with required props 1`] = `
88
Array [
99
<div>
1010
<h3
11-
className="centeredText"
11+
className="text-center"
1212
>
1313
Primary
1414
</h3>
@@ -19,7 +19,7 @@ exports[`ColorSection should render with required props 1`] = `
1919
</div>,
2020
<div>
2121
<h3
22-
className="centeredText"
22+
className="text-center"
2323
>
2424
Secondary
2525
</h3>

0 commit comments

Comments
 (0)