Skip to content

Commit

Permalink
Merge pull request #512 from WestpacGEL/fix/colors-mobile
Browse files Browse the repository at this point in the history
fixes colors mobile version
  • Loading branch information
samithaf authored Dec 8, 2023
2 parents 4520cfe + d522365 commit 0d61449
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function Colors({ palette }: { palette: string }) {
return (
<Grid tag="ul" className="mt-2">
{colorPalette.map(color => (
<Item key={color.name} tag="li" span={{ intial: 12, xsl: 6, sm: 4, md: 3 }}>
<Item key={color.name} tag="li" span={{ initial: 12, xsl: 6, sm: 4, md: 3 }}>
<div className="flex flex-row items-center bg-white p-4 xsl:flex-col xsl:items-stretch">
<Svg viewBox="0 0 132 132" width={132} height={132}>
<circle fill={color.hex} cx="66" cy="66" r="66" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ _**Note:**_ _Never use a web font without confirmation that you have the correct

```tsx
<div>
<p className="typography-body-10 text-muted italic">Sans serif system font</p>
<p className="typography-body-4">abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 !@#$¢%&*©®™£</p>
<p className="typography-body-10 text-muted italic break-words">Sans serif system font</p>
<p className="typography-body-4 break-words">abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 !@#$¢%&*©®™£</p>
</div>
```
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ _**Note:**_ _Never use a web font without confirmation that you have the correct
```tsx
<div>
<p className="typography-body-10 text-muted italic">Brand Bold</p>
<p className="typography-brand-4">abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 !@#$¢%&*©®™£</p>
<p className="typography-brand-4 break-words">abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890 !@#$¢%&*©®™£</p>
</div>
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _**Note:**_ _Do not use 300 (light) on text sizes below 18px or your text may fa

```tsx
<div>
<p className="typography-body-10 text-muted italic">Sans serif system font</p>
<p className="typography-body-10 text-muted italic break-words">Sans serif system font</p>

<div className="typography-body-4 flex flex-col gap-1">
<p>
Expand Down
1 change: 1 addition & 0 deletions apps/site/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const config: Config = withGEL({
'bg-primary-10',
'bg-primary-20',
'bg-success-20',
'break-words',
'italic',
'text-muted',
'mb-[0.875rem]',
Expand Down

0 comments on commit 0d61449

Please sign in to comment.