Last active
August 16, 2022 10:18
-
-
Save bonomiandreia/6987c58316a174dbaff0b6cb2fa17f25 to your computer and use it in GitHub Desktop.
scss example to change / override dates hover to mat-calendar angular material
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media(hover: hover) { | |
::ng-deep .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { | |
background-color: red !important; | |
border-radius: 0 !important; | |
} | |
::ng-deep .mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) { | |
background-color: green !important; | |
border: 0 !important; | |
border-radius: 0 !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
today date:
![image](https://user-images.githubusercontent.com/39713034/184855837-8b680864-d0cc-4048-88d0-622efd7006f3.png)
![image](https://user-images.githubusercontent.com/39713034/184856146-9ca11a91-6b2e-45e0-bc7d-61b779461c8c.png)
hover: