Skip to content

Commit

Permalink
🔧 chore(flexbox): Fix code examples in flexbox docs #195
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiderpig86 committed Aug 26, 2023
1 parent f5d1b7b commit b152fe5
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions cirrus-docs-next/src/utilities/flexbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,10 @@ export const FlexboxUtilsPage: React.FC<any> = (props) => {
</div>
<div className="space space--lg"></div>
<CodeBlock
code={`<div class="u-flex u-gap-2 u-round-xs bg-blue-100 p-3 text-white font-bold u-text-center">
<div class="u-round-xs u-shadow-lg bg-blue-300 p-2">0</div>
<div class="u-round-xs u-shadow-lg bg-blue-500 p-2 u-flex-shrink-1 w-100p">1</div>
<div class="u-round-xs u-shadow-lg bg-blue-300 p-2">0</div>
code={`<div class="u-flex u-gap-2 u-round-xs bg-pink-100 p-3 text-white font-bold u-text-center">
<div class="u-round-xs u-shadow-lg bg-pink-300 p-2 u-flex-grow-1">1</div>
<div class="u-round-xs u-shadow-lg bg-pink-500 p-2 u-flex-grow-0">0</div>
<div class="u-round-xs u-shadow-lg bg-pink-300 p-2 u-flex-grow-1">1</div>
</div>`}
language="htmlbars"
/>
Expand Down Expand Up @@ -622,10 +622,12 @@ export const FlexboxUtilsPage: React.FC<any> = (props) => {
</div>
<div className="space space--lg"></div>
<CodeBlock
code={`<div class="u-flex u-gap-2 u-round-xs bg-orange-100 p-3 text-white font-bold u-text-center">
<div class="u-round-xs u-shadow-lg bg-orange-300 p-2 u-flex-grow-1 u-flex-shrink-1">1</div>
<div class="u-round-xs u-shadow-lg bg-orange-500 p-2 u-flex-shrink-0" style="width: 8rem;">0</div>
<div class="u-round-xs u-shadow-lg bg-orange-300 p-2 u-flex-grow-1 u-flex-shrink-1">1</div>
code={`<div class="u-flex u-gap-2 u-round-xs bg-blue-100 p-3 text-white font-bold u-text-center">
<div class="u-round-xs u-shadow-lg bg-blue-300 p-2">0</div>
<div class="u-round-xs u-shadow-lg bg-blue-500 p-2 u-flex-shrink-1 w-100p">
1
</div>
<div class="u-round-xs u-shadow-lg bg-blue-300 p-2">0</div>
</div>`}
language="htmlbars"
/>
Expand All @@ -649,7 +651,7 @@ export const FlexboxUtilsPage: React.FC<any> = (props) => {
1
</div>
<div
className="u-round-xs u-shadow-lg bg-orange-500 p-2 u-flex-shrink-0"
className="u-round-xs u-shadow-lg bg-orange-500 p-2 u-flex-shrink-0 w-16"
style={{ width: '8rem' }}
>
0
Expand All @@ -662,10 +664,18 @@ export const FlexboxUtilsPage: React.FC<any> = (props) => {
</div>
<div className="space space--lg"></div>
<CodeBlock
code={`<div class="u-flex u-gap-2 u-round-xs bg-pink-100 p-3 text-white font-bold u-text-center">
<div class="u-round-xs u-shadow-lg bg-pink-300 p-2 u-flex-shrink-0">0</div>
<div class="u-round-xs u-shadow-lg bg-pink-500 p-2 u-flex-shrink-1">1</div>
<div class="u-round-xs u-shadow-lg bg-pink-300 p-2 u-flex-shrink-0">0</div>
code={`<div class="u-flex u-gap-2 u-round-xs bg-orange-100 p-3 text-white font-bold u-text-center">
<div class="u-round-xs u-shadow-lg bg-orange-300 p-2 u-flex-grow-1 u-flex-shrink-1">
1
</div>
<div
class="u-round-xs u-shadow-lg bg-orange-500 p-2 u-flex-shrink-0 w-16"
>
0
</div>
<div class="u-round-xs u-shadow-lg bg-orange-300 p-2 u-flex-grow-1 u-flex-shrink-1">
1
</div>
</div>`}
language="htmlbars"
/>
Expand Down

0 comments on commit b152fe5

Please sign in to comment.