Skip to content

Commit 73db058

Browse files
authored
Merge pull request #384 from getAlby/chore/caret
chore: change caret color to primary
2 parents 0008590 + 9df8623 commit 73db058

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

components/DualCurrencyInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ function DescriptionInput({
126126
</View>
127127
<BottomSheetTextInput
128128
placeholder="Sats for Satoshi"
129-
className="text-foreground placeholder:text-muted-foreground/30 border-transparent bg-transparent text-center my-16 p-3 border text-2xl leading-[1.25] font-semibold2"
129+
className="text-foreground placeholder:text-muted-foreground/30 border-transparent bg-transparent text-center my-16 p-3 border text-2xl leading-[1.25] font-semibold2 caret-primary"
130+
selectionColor={"hsl(47 100% 50%)"} // translates to primary
130131
value={input}
131132
onChangeText={setInput}
132133
onSubmitEditing={save}

components/ui/input.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ function Input({
1414
<TextInput
1515
ref={ref}
1616
className={cn(
17-
"web:flex min-h-10 native:min-h-12 web:w-full rounded-2xl border border-input bg-background px-3 web:py-2 text-base lg:text-sm native:text-lg native:leading-[1.25] text-foreground placeholder:text-muted-foreground/30 web:ring-offset-background file:border-0 file:bg-transparent file:font-medium2 web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2",
17+
"web:flex min-h-10 native:min-h-12 web:w-full rounded-2xl border border-input bg-background px-3 web:py-2 text-base lg:text-sm native:text-lg native:leading-[1.25] text-foreground placeholder:text-muted-foreground/30 web:ring-offset-background file:border-0 file:bg-transparent file:font-medium2 web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 caret-primary",
1818
props.editable === false && "opacity-50 web:cursor-not-allowed",
1919
className,
2020
)}
21+
selectionColor={"hsl(47 100% 50%)"} // translates to primary
2122
placeholderClassName={cn("text-muted-foreground", placeholderClassName)}
2223
{...props}
2324
/>

components/ui/switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function SwitchWeb({
2020
<SwitchPrimitives.Root
2121
className={cn(
2222
"peer flex-row h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed",
23-
props.checked ? "bg-amber-300" : "bg-input",
23+
props.checked ? "bg-primary" : "bg-input",
2424
props.disabled && "opacity-50",
2525
className,
2626
)}

0 commit comments

Comments
 (0)