Skip to content

Commit aed52e4

Browse files
authored
fix(container): migrate from SCSS to Tailwind CSS (#8098)
1 parent ea8c0c1 commit aed52e4

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

src/components/Container/Container.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import PropTypes from "prop-types";
22

3-
import "./Container.scss";
3+
// Tailwind CSS is now used for styling. Custom SCSS removed.
44

55
export default function Container(props = {}) {
66
const { className = "" } = props;
77

8-
return <div className={`container ${className}`}>{props.children}</div>;
8+
return (
9+
<div className={`w-full max-w-screen-lg mx-auto ${className}`}>
10+
{props.children}
11+
</div>
12+
);
913
}
1014

1115
Container.propTypes = {

src/components/Container/Container.scss

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/components/Container/__snapshots__/Container.test.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Container renders correctly with children and className 1`] = `
44
<div
5-
class="container test-class"
5+
class="w-full max-w-screen-lg mx-auto test-class"
66
>
77
<p>
88
Child content
@@ -12,7 +12,7 @@ exports[`Container renders correctly with children and className 1`] = `
1212

1313
exports[`Container renders correctly without className 1`] = `
1414
<div
15-
class="container "
15+
class="w-full max-w-screen-lg mx-auto "
1616
>
1717
<span>
1818
Simple child

0 commit comments

Comments
 (0)