Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/components/Textarea/Textarea.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,24 @@
}
}

/* =============================================
Ghost variant
============================================= */
Comment on lines +160 to +161
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Suggested change
Ghost variant
============================================= */
Ghost variant
============================================= */

&:where([data-variant="ghost"]) {
/* No background or border by default, blends with container */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid unnecessary comments

Suggested change
/* No background or border by default, blends with container */

background-color: transparent;

&:not([data-disabled]) {
&[data-focused="true"] {
box-shadow: 0 0 0 1px var(--input-soft-border-color-focus) inset;
}

&[data-invalid] {
box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset;
}
}
}

/* =============================================
Invalid
============================================= */
Expand Down
3 changes: 1 addition & 2 deletions src/components/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export type TextareaProps = {
* Visual style of the textarea
* @default outline
*/
variant?: Variants<"outline" | "soft">
/**
variant?: Variants<"outline" | "soft" | "ghost"> /**
* Controls the size of the textarea
*
* | 3xs | 2xs | xs | sm | md | lg | xl | 2xl | 3xl |
Expand Down