Add a form field component for the redesign
The label moves into the border on focus and after being filled. A valid color is applied to the label and input border. Other states like invalid can be added later as needed. Adapted from @ara4n's experiment into a React component with a CSS only approach.
This commit is contained in:
parent
7c9509ceb8
commit
efd5405267
5 changed files with 137 additions and 2 deletions
|
@ -71,6 +71,9 @@ $input-darker-bg-color: rgba(193, 201, 214, 0.29);
|
|||
$input-darker-fg-color: #9fa9ba;
|
||||
$input-lighter-bg-color: #f2f5f8;
|
||||
$input-lighter-fg-color: $input-darker-fg-color;
|
||||
$input-valid-border-color: #7ac9a1;
|
||||
|
||||
$field-focused-label-bg-color: #ffffff;
|
||||
|
||||
$button-bg-color: #7ac9a1;
|
||||
$button-fg-color: white;
|
||||
|
@ -198,8 +201,8 @@ $memberstatus-placeholder-color: $roomtile-name-color;
|
|||
|
||||
.mx_MatrixChat {
|
||||
|
||||
:not(.mx_textinput) > input[type=text],
|
||||
:not(.mx_textinput) > input[type=search],
|
||||
:not(.mx_textinput):not(.mx_Field) > input[type=text],
|
||||
:not(.mx_textinput):not(.mx_Field) > input[type=search],
|
||||
.mx_textinput {
|
||||
display: block;
|
||||
margin: 9px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue