Skip to content

Commit

Permalink
fix(date-picker): displays panel item abnormally with month and `qu…
Browse files Browse the repository at this point in the history
…arter` type in dark mode
  • Loading branch information
07akioni committed Mar 26, 2022
1 parent 7b7a345 commit 99bcb3b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Fix `n-color-picker` can't input 0 as unit's value, closes [#2680](https://github.com/TuSimple/naive-ui/issues/2680).
- Fix `n-tree`'s scrollbar overflows in virtual scroll mode, closes [#2673](https://github.com/TuSimple/naive-ui/issues/2673).
- Fix `n-layout-sider`'s `content-style` can't override `overflow: auto` prop, closes [#2671](https://github.com/TuSimple/naive-ui/issues/2671).
- Fix `n-date-picker` displays panel item abnormally with `month` and `quarter` type in dark mode.

### Feats

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- 修复 `n-color-picker` 不能输入 0 作为单位的值,关闭 [#2680](https://github.com/TuSimple/naive-ui/issues/2680)
- 修复 `n-tree` 再使用虚拟滚动时滚动条长度存在问题,关闭 [#2673](https://github.com/TuSimple/naive-ui/issues/2673)
- 修复 `n-layout-sider``content-style` 不能覆盖 `overflow: auto` 属性,关闭 [#2671](https://github.com/TuSimple/naive-ui/issues/2671)
- 修复 `n-date-picker``month``quarter` 模式下暗黑模式的 disabled 的面板时间显示有问题

### Feats

Expand Down
10 changes: 8 additions & 2 deletions src/date-picker/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,15 @@ export default c([
])
]),
cM('disabled', `
background-color: var(--n-item-color-disabled);
color: var(--n-item-text-color-disabled);
cursor: not-allowed;
`)
`, [
cM('selected', [
c('&::before', `
background-color: var(--n-item-color-disabled);
`)
])
])
])
]),
cM('date', {
Expand Down

0 comments on commit 99bcb3b

Please sign in to comment.