Skip to content

Commit 28e75b3

Browse files
Fix text color in Flex container (#1200)
1 parent 191d799 commit 28e75b3

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

components/layouts/flex.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
import styles from "./flex.module.css";
2+
import classNames from "classnames";
23

34
// Simple horizontal flex container used for MDX.
4-
const Flex = ({ children }) => {
5-
return <section className={styles.Container}>{children}</section>;
5+
const Flex = ({ wrap = false, children }) => {
6+
return (
7+
<section
8+
className={classNames(styles.Container, wrap ? styles.wrapContainer : "")}
9+
>
10+
{children}
11+
</section>
12+
);
613
};
714

815
export default Flex;

components/layouts/flex.module.css

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
.Container {
2-
@apply flex flex-col lg:flex-row;
2+
@apply flex flex-col lg:flex-row text-gray-90;
3+
}
4+
5+
:global(.dark) .Container {
6+
@apply text-gray-40;
7+
}
8+
9+
.wrapContainer {
10+
@apply flex-wrap flex-row;
311
}

content/deploy/community-cloud/status-and-limitations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If you need to whitelist IP addresses for a connection, Community Cloud is curre
6262

6363
</Warning>
6464

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

8686
## Other limitations
8787

0 commit comments

Comments
 (0)