-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Refactor TextField & TextArea to use common Field (#149)
- Loading branch information
1 parent
364db99
commit 4fff1d6
Showing
7 changed files
with
200 additions
and
150 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 |
---|---|---|
@@ -1,24 +1,5 @@ | ||
export default { | ||
'.root': { | ||
position: 'relative', | ||
}, | ||
'.textarea': { | ||
'.verticalResizeOnly': { | ||
resize: 'vertical', | ||
'&:focus': { | ||
outline: 'none', | ||
}, | ||
}, | ||
'.focusOverlay': { | ||
position: 'absolute', | ||
top: 0, | ||
bottom: 0, | ||
left: 0, | ||
right: 0, | ||
opacity: 0, | ||
pointerEvents: 'none', | ||
transition: 'opacity 0.2s', | ||
'.textarea:focus ~ &': { | ||
opacity: 1, | ||
}, | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const focusOverlay: string; | ||
export const root: string; | ||
export const textarea: string; | ||
export const verticalResizeOnly: string; |
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
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
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,14 @@ | ||
export default { | ||
'.fieldContainer': { | ||
position: 'relative', | ||
}, | ||
'.field:focus': { | ||
outline: 'none', | ||
}, | ||
'.field:focus ~ .focusOverlay': { | ||
opacity: 1, | ||
}, | ||
'.field:hover ~ .hoverOverlay': { | ||
opacity: 1, | ||
}, | ||
}; |
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,6 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
export const field: string; | ||
export const fieldContainer: string; | ||
export const focusOverlay: string; | ||
export const hoverOverlay: string; |
Oops, something went wrong.