Skip to content

Commit

Permalink
refactor(flat-components): date picker disallow change the year (#2144)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious committed Apr 30, 2024
1 parent 45744f5 commit 6c2f0ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
@import "~antd/es/date-picker/style/index.less";

.ant-picker-year-btn {
opacity: .5;
pointer-events: none;
}
9 changes: 9 additions & 0 deletions packages/flat-components/src/theme/antd.mod.less
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,15 @@
}
}

.ant-picker.ant-picker-disabled {
background: var(--grey-9);
border: 1px solid var(--grey-7);
}

.ant-picker-input>input[disabled] {
color: var(--text-weak);
}

.ant-picker-panel {
border-bottom: 1px solid var(--grey-8);
}
Expand Down

0 comments on commit 6c2f0ae

Please sign in to comment.