Skip to content

Commit d9ab601

Browse files
authored
[WEB-5742] fix: input field background #8369
1 parent f0b98ce commit d9ab601

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

apps/web/core/components/pages/modals/page-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ export function PageForm(props: Props) {
6767
isOpen={isOpen}
6868
handleToggle={(val: boolean) => setIsOpen(val)}
6969
className="flex items-center justify-center flex-shrink0"
70-
buttonClassName="flex items-center justify-center"
70+
buttonClassName="flex items-center justify-center bg-layer-2 hover:bg-layer-2-hover rounded-md"
7171
label={
72-
<span className="grid h-9 w-9 place-items-center rounded-md bg-surface-2">
72+
<span className="grid h-9 w-9 place-items-center rounded-md">
7373
<>
7474
{formData?.logo_props?.in_use ? (
7575
<Logo logo={formData?.logo_props} size={18} type="lucide" />

packages/propel/src/scrollarea/scrollarea.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ const ScrollBar = React.memo(function ScrollBar({
8080
orientation === "vertical" && verticalSizeStyles[size],
8181
orientation === "horizontal" && horizontalSizeStyles[size],
8282
scrollType === "always" && "opacity-100",
83-
scrollType === "scroll" &&
84-
"data-[scrolling]:opacity-100 data-[scrolling]:delay-0 data-[scrolling]:duration-75",
83+
scrollType === "scroll" && "data-[scrolling]:opacity-100 data-[scrolling]:delay-0 data-[scrolling]:duration-75",
8584
scrollType === "hover" && "data-[hovering]:opacity-100 data-[hovering]:delay-0 data-[hovering]:duration-75",
8685
className
8786
)}
@@ -90,7 +89,7 @@ const ScrollBar = React.memo(function ScrollBar({
9089
<BaseScrollArea.Thumb
9190
data-slot="scroll-area-thumb"
9291
className={cn(
93-
"relative flex-1 rounded-[10px] bg-custom-scrollbar-neutral group-hover:bg-custom-scrollbar-hover group-active/track:bg-custom-scrollbar-active data-[scrolling]:bg-custom-scrollbar-active",
92+
"relative flex-1 rounded-[10px] bg-scrollbar-thumb group-hover/track:bg-scrollbar-thumb-hover group-active/track:bg-scrollbar-thumb-active data-[scrolling]:bg-scrollbar-thumb-active",
9493
thumbSizeStyles[size]
9594
)}
9695
/>

packages/ui/src/form-fields/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Input = React.forwardRef(function Input(props: InputProps, ref: React.Forw
3030
type={type}
3131
name={name}
3232
className={cn(
33-
"block rounded-md bg-layer-1 text-13 placeholder-tertiary border-subtle-1 focus:outline-none",
33+
"block rounded-md bg-layer-transparent text-13 placeholder-tertiary border-subtle-1 focus:outline-none",
3434
{
3535
"rounded-md border-[0.5px]": mode === "primary",
3636
"rounded-sm border-none bg-transparent ring-0 transition-all focus:ring-1 focus:ring-custom-primary":

packages/ui/src/form-fields/password/password-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function PasswordInput({
3131
value={value}
3232
onChange={(e) => onChange(e.target.value)}
3333
className={cn(
34-
"w-full px-3 py-2 pr-10 text-secondary border rounded-md bg-surface-1 focus:outline-none focus:ring-2 focus:ring-custom-primary-100 placeholder:text-placeholder focus:border-transparent transition-all duration-200",
34+
"w-full px-3 py-2 pr-10 text-secondary border rounded-md bg-surface-1 focus:outline-none focus:ring-2 focus:ring-accent-strong placeholder:text-placeholder focus:border-transparent transition-all duration-200",
3535
{
3636
"border-strong": !error,
3737
"border-red-500": error,

packages/ui/src/scroll-area.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function ScrollArea(props: TScrollAreaProps) {
4242
>
4343
<RadixScrollArea.Thumb
4444
className={cn(
45-
"relative flex-1 rounded-[10px] bg-custom-scrollbar-neutral group-hover:bg-custom-scrollbar-hover group-active/track:bg-custom-scrollbar-active",
45+
"relative flex-1 rounded-[10px] bg-scrollbar-thumb group-hover:bg-scrollbar-thumb-surface-hover group-hover/track:bg-scrollbar-thumb-hover group-active/track:bg-scrollbar-thumb-active",
4646
thumbSizeStyles[size]
4747
)}
4848
/>
@@ -56,7 +56,7 @@ export function ScrollArea(props: TScrollAreaProps) {
5656
>
5757
<RadixScrollArea.Thumb
5858
className={cn(
59-
"relative flex-1 rounded-[10px] bg-custom-scrollbar-neutral group-hover:bg-custom-scrollbar-hover group-active/track:bg-custom-scrollbar-active",
59+
"relative flex-1 rounded-[10px] bg-scrollbar-thumb group-hover:bg-scrollbar-thumb-surface-hover group-hover/track:bg-scrollbar-thumb-hover group-active/track:bg-scrollbar-thumb-active",
6060
thumbSizeStyles[size]
6161
)}
6262
/>

0 commit comments

Comments
 (0)