소스 검색

date-picker: highlight current month and year (#14211)

Debiancc 6 년 전
부모
커밋
0ddc10d652
2개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      packages/theme-chalk/src/date-picker/month-table.scss
  2. 7 0
      packages/theme-chalk/src/date-picker/year-table.scss

+ 7 - 0
packages/theme-chalk/src/date-picker/month-table.scss

@@ -10,6 +10,13 @@
     padding: 20px 3px;
     cursor: pointer;
 
+    &.today {
+      .cell {
+        color: $--color-primary;
+        font-weight: bold;
+      }
+    }
+
     &.disabled .cell {
       background-color: $--background-color-base;
       cursor: not-allowed;

+ 7 - 0
packages/theme-chalk/src/date-picker/year-table.scss

@@ -14,6 +14,13 @@
     padding: 20px 3px;
     cursor: pointer;
 
+    &.today {
+      .cell {
+        color: $--color-primary;
+        font-weight: bold;
+      }
+    }
+
     &.disabled .cell {
       background-color: $--background-color-base;
       cursor: not-allowed;