Skip to content

Commit

Permalink
fix(dashboard): enhance readonly input styles for codemirror
Browse files Browse the repository at this point in the history
  • Loading branch information
BiswaViraj committed Dec 12, 2024
1 parent 7a695b3 commit f54771c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/dashboard/src/components/primitives/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ const inputFieldVariants = cva(
'has-[input:read-only]:text-foreground-700',
'has-[input:read-only]:bg-neutral-alpha-100',
'has-[input:read-only]:opacity-70',
'has-[input:read-only]:border-neutral-alpha-200'
'has-[input:read-only]:border-neutral-alpha-200',
'has-[.cm-content[aria-readonly=true]]:cursor-not-allowed',
'has-[.cm-content[aria-readonly=true]]:text-foreground-700',
'has-[.cm-content[aria-readonly=true]]:bg-neutral-alpha-100',
'has-[.cm-content[aria-readonly=true]]:opacity-70',
'has-[.cm-content[aria-readonly=true]]:border-neutral-alpha-200'
),
{
variants: {
Expand Down

0 comments on commit f54771c

Please sign in to comment.