-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
refactor(Container): migrate Container styles from SCSS to Tailwind CSS #8047 #8106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| import PropTypes from "prop-types"; | ||
|
|
||
| import "./Container.scss"; | ||
|
|
||
| export default function Container(props = {}) { | ||
| const { className = "" } = props; | ||
|
|
||
| return <div className={`container ${className}`}>{props.children}</div>; | ||
| return ( | ||
| <div className={`w-full max-w-5xl mx-auto ${className}`}> | ||
| {props.children} | ||
|
Comment on lines
+7
to
+8
|
||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| Container.propTypes = { | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,7 +10,7 @@ const footerLinkClasses = | |||||
|
|
||||||
| const Footer = () => ( | ||||||
| <footer className="w-full flex-[0_0_auto] print:hidden"> | ||||||
| <Container className="mx-auto max-w-[900px] px-5 pb-[30px] pt-[40px] text-center [&_a]:text-[#3b7eb5]"> | ||||||
| <Container className="mx-auto max-w-5xl px-5 pb-[30px] pt-[40px] text-center [&_a]:text-[#3b7eb5]"> | ||||||
|
||||||
| <Container className="mx-auto max-w-5xl px-5 pb-[30px] pt-[40px] text-center [&_a]:text-[#3b7eb5]"> | |
| <Container className="px-5 pb-[30px] pt-[40px] text-center [&_a]:text-[#3b7eb5]"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the
containerCSS class from the Container root breaks existing SCSS selectors that rely on it (e.g.src/components/Splash/Splash.scsstargets.splash__section .containerfor padding). Consider keeping a stablecontainerclass on this element for backward compatibility, or update the remaining SCSS/call sites that depend on.containerto use Tailwind utilities instead.