Skip to content

Commit

Permalink
feat: include example for icon insert on input fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehenson committed Nov 14, 2024
1 parent 44b39b8 commit d91ea0d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Icon/__snapshots__/Icon.stories.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -447,14 +447,14 @@ exports[`JS Components/Icon DisplayIcons smoke-test 1`] = `
</div>
<div class="border p-16 flex flex-col sm:flex-row items-center justify-between gap-12">
<code class="ui-text-code mb-8 block">
icon-display-connection-state-&amp;-recovery
icon-display-connection-state-recovery
</code>
<div class="border inline-flex flex-0">
<div class="flex pi-checkered-bg">
<svg class="text-cool-black hover:text-active-orange"
style="width: 1.5rem; height: 1.5rem;"
>
<use xlink:href="#sprite-icon-display-connection-state-&amp;-recovery">
<use xlink:href="#sprite-icon-display-connection-state-recovery">
</use>
</svg>
</div>
Expand Down
14 changes: 14 additions & 0 deletions src/core/styles/Forms.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ export const Inputs = {
/>
<p className="ui-text-p3 text-gui-error-red mt-8">Oof, what an input</p>
</div>
<div>
<p className="mb-16 text-neutral-800">With character insert</p>
<div className="relative">
<div className="h-32 w-32 absolute left-8 top-8 flex items-center justify-center select-none cursor-default">
$
</div>
<input
type="search"
className="ui-input pl-40"
placeholder="With icon"
autoComplete="off"
/>
</div>
</div>
</div>
),
};
Expand Down
15 changes: 15 additions & 0 deletions src/core/styles/__snapshots__/Forms.stories.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,21 @@ exports[`CSS/Forms Inputs smoke-test 1`] = `
Oof, what an input
</p>
</div>
<div>
<p class="mb-16 text-neutral-800">
With character insert
</p>
<div class="relative">
<div class="h-32 w-32 absolute left-8 top-8 flex items-center justify-center select-none cursor-default">
$
</div>
<input type="search"
class="ui-input pl-40"
placeholder="With icon"
autocomplete="off"
>
</div>
</div>
</div>
`;
Expand Down

0 comments on commit d91ea0d

Please sign in to comment.