-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Textarea): Convert Textarea to CSS module behind feature flag (#…
…5294) * initial conversion * changeset/lint
- Loading branch information
1 parent
736bd7b
commit 912a0d7
Showing
3 changed files
with
75 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/react": minor | ||
--- | ||
|
||
Update `Textarea` component to use CSS module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.TextArea { | ||
width: 100%; | ||
font-family: inherit; | ||
font-size: inherit; | ||
color: inherit; | ||
resize: both; | ||
background-color: transparent; | ||
border: 0; | ||
appearance: none; | ||
} | ||
|
||
.TextArea:focus { | ||
outline: 0; | ||
} | ||
|
||
.TextArea[resize='none'] { | ||
resize: none; | ||
} | ||
|
||
.TextArea[resize='both'] { | ||
resize: both; | ||
} | ||
|
||
.TextArea[resize='horizontal'] { | ||
resize: horizontal; | ||
} | ||
|
||
.TextArea[resize='vertical'] { | ||
resize: vertical; | ||
} | ||
|
||
.TextArea:disabled { | ||
resize: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters