Merge pull request #1539 from florianorben/PLT-1170

PLT-1170: Support enter key in DeletePostModal
Этот коммит содержится в:
Christopher Speller
2015-11-30 08:26:19 -05:00
родитель c328be631b eecba7880f
Коммит 9e464f3d13
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@@ -152,6 +152,7 @@ export default class DeletePostModal extends React.Component {
type='button' type='button'
className='btn btn-danger' className='btn btn-danger'
onClick={this.handleDelete} onClick={this.handleDelete}
autoFocus='autofocus'
> >
{'Delete'} {'Delete'}
</button> </button>

Просмотреть файл

@@ -116,7 +116,7 @@ a:focus, a:hover {
.btn { .btn {
&.btn-danger { &.btn-danger {
color: #fff; color: #fff;
&:hover, &:active { &:hover, &:active, &:focus {
color: #fff; color: #fff;
} }
} }