-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI Framework] Add AssistedInput. (#11343)
* Add AssistedInput component. * Add missing .kuiLocalSearchSelect class. Add AssistedInput to LocalNav example.
- Loading branch information
Showing
10 changed files
with
243 additions
and
67 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
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,17 @@ | ||
/** | ||
* 1. Set inline-block so this wrapper shrinks to fit the input. | ||
*/ | ||
.kuiAssistedInput { | ||
display: inline-block; /* 1 */ | ||
position: relative; | ||
} | ||
|
||
/** | ||
* 1. Vertically center the assistance, regardless of its height. | ||
*/ | ||
.kuiAssistedInput__assistance { | ||
position: absolute; | ||
right: $globalFormControlHorizontalPadding; | ||
top: 50%; /* 1 */ | ||
transform: translateY(-50%); /* 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,3 +1,4 @@ | ||
@import "assisted_input"; | ||
@import "check_box"; | ||
@import "search_input"; | ||
@import "select"; | ||
|
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
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 @@ | ||
<div class="kuiAssistedInput"> | ||
<input | ||
style="width: 300px; padding-right: 5.5em" | ||
type="text" | ||
class="kuiTextInput" | ||
placeholder="Enter API command" | ||
> | ||
|
||
<div class="kuiAssistedInput__assistance"> | ||
<p class="kuiText"> | ||
<a class="kuiLink" href="#">API docs</a> | ||
</p> | ||
</div> | ||
</div> |
Oops, something went wrong.