-
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.
feat(FileDrop): Add support for validation messages
Enables FileDrop to accept the same `messages` prop that our other form input components accept. Fixes: INSTUI-862 Test plan: - The second FileDrop example should now appear with an `Invalid filetype` message and red/error border - Change the message type to `success` and confirm the text turns green - Test the input on a screenreader and confirm that the message is read when the input is focused via aria-describedby (does not work in NVDA due to screenreader/Firefox bug nvaccess/nvda#5326) - Confirm that :focus, :hover, and error states can now be seen simultaneously Change-Id: Iec9d8e98c0ae9bbd99f0800689fd4dccfae9d522 Reviewed-on: https://gerrit.instructure.com/134365 Tested-by: Jenkins Reviewed-by: Jennifer Stern <jstern@instructure.com> QA-Review: Dan Sasaki <dsasaki@instructure.com> Product-Review: Chris Hart <chart@instructure.com>
- Loading branch information
Chris Hart
committed
Dec 7, 2017
1 parent
ed26f7c
commit 879862c
Showing
4 changed files
with
85 additions
and
20 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
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