Skip to content

Commit

Permalink
Fix text color in Flex container (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dmatthews authored Dec 11, 2024
1 parent 191d799 commit 28e75b3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
11 changes: 9 additions & 2 deletions components/layouts/flex.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import styles from "./flex.module.css";
import classNames from "classnames";

// Simple horizontal flex container used for MDX.
const Flex = ({ children }) => {
return <section className={styles.Container}>{children}</section>;
const Flex = ({ wrap = false, children }) => {
return (
<section
className={classNames(styles.Container, wrap ? styles.wrapContainer : "")}
>
{children}
</section>
);
};

export default Flex;
10 changes: 9 additions & 1 deletion components/layouts/flex.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.Container {
@apply flex flex-col lg:flex-row;
@apply flex flex-col lg:flex-row text-gray-90;
}

:global(.dark) .Container {
@apply text-gray-40;
}

.wrapContainer {
@apply flex-wrap flex-row;
}
4 changes: 2 additions & 2 deletions content/deploy/community-cloud/status-and-limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ If you need to whitelist IP addresses for a connection, Community Cloud is curre

</Warning>

<div style={{ display: "flex", flexWrap: "wrap", flexDirection: "row", alignItems: "start" }}>
<Flex wrap >
<div style={{ width: "150px" }}>35.230.127.150</div>
<div style={{ width: "150px" }}>35.203.151.101</div>
<div style={{ width: "150px" }}>34.19.100.134</div>
Expand All @@ -81,7 +81,7 @@ If you need to whitelist IP addresses for a connection, Community Cloud is curre
<div style={{ width: "150px" }}>35.227.190.87</div>
<div style={{ width: "150px" }}>35.199.156.97</div>
<div style={{ width: "150px" }}>34.82.135.155</div>
</div>
</Flex>

## Other limitations

Expand Down

0 comments on commit 28e75b3

Please sign in to comment.