Skip to content

Commit

Permalink
feat: add danger disabled btn style
Browse files Browse the repository at this point in the history
  • Loading branch information
Erindcl committed Jul 24, 2020
1 parent 84a95d4 commit 8a958fa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 2 additions & 0 deletions components/button/demo/danger.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ ReactDOM.render(
<div className="demo-button-type">
<Button type="danger">二级按钮</Button>
<Button ghost type="danger">幽灵按钮</Button>
<Button disabled type="danger">二级按钮</Button>
<Button disabled ghost type="danger">幽灵按钮</Button>
</div>,
mountNode,
);
Expand Down
20 changes: 20 additions & 0 deletions theme/dt-theme/default/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,23 @@
.ant-btn-lg {
height: 36px;
}

.ant-btn-danger-disabled,
.ant-btn-danger.disabled,
.ant-btn-danger[disabled],
.ant-btn-danger-disabled:hover,
.ant-btn-danger.disabled:hover,
.ant-btn-danger[disabled]:hover,
.ant-btn-danger-disabled:focus,
.ant-btn-danger.disabled:focus,
.ant-btn-danger[disabled]:focus,
.ant-btn-danger-disabled:active,
.ant-btn-danger.disabled:active,
.ant-btn-danger[disabled]:active,
.ant-btn-danger-disabled.active,
.ant-btn-danger.disabled.active,
.ant-btn-danger[disabled].active {
background-color: @blackE8 !important;
border-color: @blackE8;
color: @blackBF;
}
4 changes: 2 additions & 2 deletions theme/template/Layout/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import utils from '../../utils';
// import '../../dt-theme/reset.less';
// import '../../dt-theme/index.less';

// import '../../dt-theme/default/index.less';
import '../../dt-theme/dark/index.less';
import '../../dt-theme/default/index.less';
// import '../../dt-theme/dark/index.less';

if (typeof window !== 'undefined' && navigator.serviceWorker) {
navigator.serviceWorker.getRegistrations().then(registrations => {
Expand Down

0 comments on commit 8a958fa

Please sign in to comment.