fix: readonly field styling (#1887)

Changes:
- Updating styling of read only fields
- Removed truncation for fields and used overflow hidden instead
This commit is contained in:
David Nguyen
2025-07-10 12:35:18 +10:00
committed by GitHub
parent 9917def0ca
commit 106f796fea
4 changed files with 17 additions and 13 deletions

View File

@ -15,6 +15,15 @@ export type RecipientColorStyles = {
// !: values of the declared variable to do all the background, border and shadow styles.
export const RECIPIENT_COLOR_STYLES = {
readOnly: {
base: 'ring-neutral-400',
fieldItem: 'group/field-item rounded-[2px]',
fieldItemInitials: '',
comboxBoxTrigger:
'ring-2 ring-recipient-green shadow-[0_0_0_5px_hsl(var(--recipient-green)/10%),0_0_0_2px_hsl(var(--recipient-green)/60%),0_0_0_0.5px_hsl(var(--recipient-green))]',
comboxBoxItem: '',
},
green: {
base: 'ring-recipient-green hover:bg-recipient-green/30',
fieldItem: 'group/field-item rounded-[2px]',