PLT-1170: Support enter key in DeletePostModal
Этот коммит содержится в:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user