-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEVHUB-1898, UP-6913] Add Hotkey Indicator to Chat InputBar Component (
#2476) * Add hotkey indicator in the InputBar component in lg-chat * Add test for InputBar hotkey indicator, run changeset script * Fix styles * Update variable naming, remove unused import * Remove unused import * Run prettier * Hide hotkey indicator on disabled * PR review * Add default value for shouldRenderHotkeyIndicator prop * Improve hotkey indicator visibility test * Run autofix * Fix hotkey indicator animation, focus input on hotkey press when shouldRenderHotkeyIndicator is true * Remove debug values * Be more explicit about ref check on hotkey press * PR review * Add bool cast to ref check * Fix failing input focus on hotkey press test
- Loading branch information
Showing
7 changed files
with
161 additions
and
12 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 @@ | ||
--- | ||
'@lg-chat/input-bar': minor | ||
--- | ||
|
||
Add `shouldRenderHotkeyIndicator` prop to InputBar component which determines if hotkey indicator is rendered |
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
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