diff options
author | Florian Orben <florian.orben@gmail.com> | 2015-11-28 16:19:01 +0100 |
---|---|---|
committer | Florian Orben <florian.orben@gmail.com> | 2015-11-28 16:20:28 +0100 |
commit | eecba7880f0bc7fa5fe9da2c141ceaec65e4f9ff (patch) | |
tree | 34364ac70066a6cfe492a690a0ec2038651cf38c | |
parent | 42a001c4e26acaebb7bade2a9b45428578b04164 (diff) | |
download | chat-eecba7880f0bc7fa5fe9da2c141ceaec65e4f9ff.tar.gz chat-eecba7880f0bc7fa5fe9da2c141ceaec65e4f9ff.tar.bz2 chat-eecba7880f0bc7fa5fe9da2c141ceaec65e4f9ff.zip |
PLT-1170: Support enter key in DeletePostModal
-rw-r--r-- | web/react/components/delete_post_modal.jsx | 1 | ||||
-rw-r--r-- | web/sass-files/sass/partials/_base.scss | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/delete_post_modal.jsx b/web/react/components/delete_post_modal.jsx index 3c4b17905..5e89a0893 100644 --- a/web/react/components/delete_post_modal.jsx +++ b/web/react/components/delete_post_modal.jsx @@ -152,6 +152,7 @@ export default class DeletePostModal extends React.Component { type='button' className='btn btn-danger' onClick={this.handleDelete} + autoFocus='autofocus' > {'Delete'} </button> diff --git a/web/sass-files/sass/partials/_base.scss b/web/sass-files/sass/partials/_base.scss index 2fc63443e..7efe70cb4 100644 --- a/web/sass-files/sass/partials/_base.scss +++ b/web/sass-files/sass/partials/_base.scss @@ -116,7 +116,7 @@ a:focus, a:hover { .btn { &.btn-danger { color: #fff; - &:hover, &:active { + &:hover, &:active, &:focus { color: #fff; } } |