Skip to content

Commit 2f664ec

Browse files
committed
added a bit padding on the inputs
1 parent 97353c1 commit 2f664ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

library/src/components/styleHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const overlayBaseStyle =
44
"bg-surface-overlay relative shadow-overlay border-border border-solid border z-50 rounded overflow-auto max-h-full" /* only-x-auto to allow for horizontal scrolling but do not cut off the outline */
55

66
export const inputBaseStyle = twJoin(
7-
"min-h-9 rounded box-border w-full relative border-[0.88px] border-input-border bg-input focus-within:bg-input-active border-solid focus-within:border-transparent data-[active=true]:border-transparent data-[invalid=true]:border-transparent ease-in-out transition duration-200 p-0 ",
7+
"px-0.5 min-h-9 rounded box-border w-full relative border-[0.88px] border-input-border bg-input focus-within:bg-input-active border-solid focus-within:border-transparent data-[active=true]:border-transparent data-[invalid=true]:border-transparent ease-in-out transition duration-200 p-0 ",
88
"before:pointer-events-none before:z-10 before:content-[''] before:absolute before:-inset-[0.5px] before:box-border before:rounded before:border-2 before:border-solid before:border-transparent",
99
"focus-within:before:border-input-border-focused",
1010
"data-[active=true]:before:border-input-border-focused",

showcase/src/components/showcase/wrapper/LayeringShowcase.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
22
import ShowcaseWrapperItem, {
3-
ShowcaseProps,
3+
type ShowcaseProps,
44
} from "../../ShowCaseWrapperItem/ShowcaseWrapperItem"
55
import {
66
Button,
@@ -19,6 +19,7 @@ function Example() {
1919
<div className="flex p-4">
2020
<Input placeholder="Test Input" />
2121
<Input disabled placeholder="Test Input Disabled" />
22+
<Input placeholder="Test Input 2" />
2223
<Select
2324
options={[
2425
{ label: "Test", value: "test" },

0 commit comments

Comments
 (0)