Keep selected dates in focus when clicking away #874
|
Currently, the dates get :focus styles applied only when in focus, but as soon as the user clicks away, the selected date loses focus and it's not clear which date was selected. Is there a way to persist the :focus styles on selected dates? Here's an example, click on the New button to have the calendar displayed https://stackblitz.com/edit/stackblitz-starters-gzpusc?file=src%2Fstyle.css |
Answered by
samhirtarif
Jun 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since you are maintaining the selected value in the
Calendarcomponent, you could usetileClassNamefor that specific tile like this.Here's your stackblitz modified to cater to your requirement