Skip to content

Commit

Permalink
Merge pull request #511 from WestpacGEL/505-gel-design-system-docs-re…
Browse files Browse the repository at this point in the history
…sponsive-resizing-of-buttons

fixes #505
  • Loading branch information
samithaf authored Dec 8, 2023
2 parents 0d61449 + 0e5ac7f commit ea4d6b5
Showing 1 changed file with 22 additions and 28 deletions.
50 changes: 22 additions & 28 deletions apps/site/src/components/component-blocks/icons/icons.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,28 @@ export const Icons = () => {

return (
<form action="/api/assets" method="POST">
<div className="mb-4 bg-light p-4">
<Grid>
<Item span={{ initial: 12, sm: 6 }}>
<div className="flex flex-col items-start sm:flex-row sm:items-center">
<label className="mb-2 mr-[1rem] sm:mb-0" htmlFor="filter-icons">
Filter by name
</label>
<Input id="filter-icon" value={search} onChange={handleOnChange} className="w-full" />
</div>
</Item>
<Item span={{ initial: 12, sm: 3 }}>
<div className="flex flex-col items-start sm:flex-row sm:items-center">
<label className="mb-2 mr-[1rem] sm:mb-0" htmlFor="icon-look">
Look
</label>
<Select id="icon-look" value={look} onChange={handleLookChange} className="w-full sm:w-fit">
<option value="filled">Filled</option>
<option value="outlined">Outlined</option>
</Select>
</div>
</Item>
<Item span={{ initial: 12, sm: 3 }}>
<input type="hidden" name="asset" value="icon" />
<Button look="primary" iconBefore={AllIcons.DownloadIcon} soft type="submit">
Download all SVGs
</Button>
</Item>
</Grid>
<div className="mb-4 flex flex-wrap gap-3 bg-light p-4 align-bottom">
<div className="flex w-full shrink-0 grow flex-col items-start sm:w-auto sm:flex-row sm:items-center">
<label className="mb-2 mr-[1rem] sm:mb-0" htmlFor="filter-icons">
Filter by name
</label>
<Input id="filter-icon" value={search} onChange={handleOnChange} className="w-full" />
</div>
<div className="flex w-full flex-col items-start xsl:w-auto sm:flex-row sm:items-center">
<label className="mb-2 mr-[1rem] sm:mb-0" htmlFor="icon-look">
Look
</label>
<Select id="icon-look" value={look} onChange={handleLookChange} className="w-full sm:w-fit">
<option value="filled">Filled</option>
<option value="outlined">Outlined</option>
</Select>
</div>
<div className="flex w-full items-end sm:w-auto">
<input type="hidden" name="asset" value="icon" />
<Button look="primary" iconBefore={AllIcons.DownloadIcon} soft type="submit">
Download all SVGs
</Button>
</div>
</div>
<Grid>
<Item span={12}>
Expand Down

1 comment on commit ea4d6b5

@vercel
Copy link

@vercel vercel bot commented on ea4d6b5 Dec 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

gel-next-site – ./apps/site

gel-next-site-git-main-westpacgel.vercel.app
gel-next-site.vercel.app
gel-next-site-westpacgel.vercel.app

Please sign in to comment.