diff --git a/src/App/ComponentsDocumentation/components/Card/index.js b/src/App/ComponentsDocumentation/components/Card/index.js index 5009282d1d..9422f5339a 100644 --- a/src/App/ComponentsDocumentation/components/Card/index.js +++ b/src/App/ComponentsDocumentation/components/Card/index.js @@ -21,137 +21,137 @@ const basename = process.env.basename; const brand = process.env.brand; const Overview = () => { - console.log("Brand:", brand); // Log the brand variable + console.log("Brand:", brand); // Log the brand variable - return ( - <> -

Overview

-

- The card component should be used to direct to pages on our site and not - to external sites, in that case use{" "} - Links instead. -

- + return ( + <> +

Overview

+

+ The card component should be used to direct to pages on our site and not + to external sites, in that case use{" "} + Links instead. +

+ -

{"Dos and dont's"}

- {brand === "swedbankpay" && ( -
-
-
-

Do

- When presenting a group of cards, make sure their color match and have - the same size and text length - Three cards in a horizontal line that all have the same icon color and text length. -
-
-
-
-

{"Don't"}

- Avoid miss-match colors, different sizes and length on text in order - to present a clean view - Three cards in a horizontal line that have different icon colors and text lengths. -
-
+

{"Dos and dont's"}

+ {brand === "swedbankpay" && ( +
+
+
+

Do

+ When presenting a group of cards, make sure their color match and have + the same size and text length + Three cards in a horizontal line that all have the same icon color and text length. +
+
+
+
+

{"Don't"}

+ Avoid miss-match colors, different sizes and length on text in order + to present a clean view + Three cards in a horizontal line that have different icon colors and text lengths. +
+
-
-
-

Do

- When presenting a group of cards, make sure they match visually. Try - keeping it the same text length and to one row when possible. - Three wide cards in a vertical line that have the same icon color and text length. -
-
-
-
-

{"Don't"}

- Avoid miss-match colors, different sizes and length on text in order - to present a clean view. When using numbers make sure the numbering is - sequenced and follows the correct order. - Three wide cards in a vertical line that have inconsistent iconography, different colors and varied text lengths. +
+
+

Do

+ When presenting a group of cards, make sure they match visually. Try + keeping it the same text length and to one row when possible. + Three wide cards in a vertical line that have the same icon color and text length. +
+
+
+
+

{"Don't"}

+ Avoid miss-match colors, different sizes and length on text in order + to present a clean view. When using numbers make sure the numbering is + sequenced and follows the correct order. + Three wide cards in a vertical line that have inconsistent iconography, different colors and varied text lengths. +
+
+
-
-
-
- - )} - {brand === "payex" && ( -
-
-
-

Do

- When presenting a group of cards, make sure their color match and have - the same size and text length - Three cards in a horizontal line that all have the same icon color and text length. -
-
-
-
-

{"Don't"}

- Avoid miss-match colors, different sizes and length on text in order - to present a clean view - Three cards in a horizontal line that have different icon colors and text lengths. -
-
+ + )} + {brand === "payex" && ( +
+
+
+

Do

+ When presenting a group of cards, make sure their color match and have + the same size and text length + Three cards in a horizontal line that all have the same icon color and text length. +
+
+
+
+

{"Don't"}

+ Avoid miss-match colors, different sizes and length on text in order + to present a clean view + Three cards in a horizontal line that have different icon colors and text lengths. +
+
-
-
-

Do

- When presenting a group of cards, make sure they match visually. Try - keeping it the same text length and to one row when possible. - Three wide cards in a vertical line that have the same icon color and text length. -
-
-
-
-

{"Don't"}

- Avoid miss-match colors, different sizes and length on text in order - to present a clean view. When using numbers make sure the numbering is - sequenced and follows the correct order. - Three wide cards in a vertical line that have inconsistent iconography, different colors and varied text lengths. +
+
+

Do

+ When presenting a group of cards, make sure they match visually. Try + keeping it the same text length and to one row when possible. + Three wide cards in a vertical line that have the same icon color and text length. +
+
+
+
+

{"Don't"}

+ Avoid miss-match colors, different sizes and length on text in order + to present a clean view. When using numbers make sure the numbering is + sequenced and follows the correct order. + Three wide cards in a vertical line that have inconsistent iconography, different colors and varied text lengths. +
+
+
-
-
-
- )} - - ); + )} + + ); }; // TODO: remove during next major release, not offered for a long time now