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'
className='btn btn-danger'
onClick={this.handleDelete}
autoFocus='autofocus'
>
{'Delete'}
</button>

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

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