Skip to content

Commit c3c3685

Browse files
committed
feat: update AddressChip button styles for improved visual consistency and accessibility; refine SchemaSearch layout for better readability
1 parent e76d0d4 commit c3c3685

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/components/navbar/AddressChip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function AddressChip({ address }: { address: string }) {
4040
<Tooltip open={showTooltip}>
4141
<TooltipTrigger asChild>
4242
<Button
43-
className="dark:bg-popover bg-brand-foreground hover:bg-muted text-primary dark:text-brand duration-300"
43+
className="dark:bg-popover bg-primary-foreground hover:bg-muted text-primary dark:text-brand duration-300"
4444
variant="secondary"
4545
onClick={handleCopy}
4646
onMouseEnter={handleMouseEnter}

src/components/ui/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
77
type={type}
88
data-slot="input"
99
className={cn(
10-
'file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
10+
'file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
1111
'focus-visible:border-ring',
1212
'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
1313
className

src/modules/datasets/SchemaSearch.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function SchemaSearch({
7272
: 'translate-y-2 grid-rows-[0fr]'
7373
)}
7474
>
75-
<div className={cn('text-grey-200 grid overflow-hidden px-6 md:px-10')}>
75+
<div className={cn('grid overflow-hidden px-6 md:px-10')}>
7676
<hr className="border-secondary" />
7777
<div
7878
className={cn(
@@ -83,7 +83,9 @@ export function SchemaSearch({
8383
)}
8484
>
8585
<div className="flex flex-wrap items-center gap-2.5 overflow-hidden">
86-
Filter by field types:{' '}
86+
<span className="text-muted-foreground">
87+
Filter by field types:
88+
</span>{' '}
8789
{filters.map((schema, index) => {
8890
const borderColor = borderTypeColor.find((color) =>
8991
color.keywords.some((keyword) =>

0 commit comments

Comments
 (0)