igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

There should be indication that selected date is disabled

Open nrobakova opened this issue 8 years ago • 6 comments

Description

There should be indication that selected date is disabled

  • igniteui-angular version: 6.2.x
  • browser: N/A

Steps to reproduce

  1. Open dev demos
  2. Open calendar sample
  3. In calendar with disabled dates select disabled date with API

Result

The date is selected, but it looks like a enabled selected date

Expected result

The disabled selected date color should be different than the normal selected date

Attachments

Attach a sample if available, and screenshots, if applicable.
image

nrobakova avatar Oct 09 '18 10:10 nrobakova

Hi, that's what I suggest as a solution. The disable selected date is Nov 8th. disabledselecteddate_calendar The only change is putting background-color grey100: background-color: rgba(0,0,0,0.04);

DaniMarinov avatar Nov 20 '18 09:11 DaniMarinov

@nrobakova Why are disabled dates selectable?

simeonoff avatar Nov 21 '18 09:11 simeonoff

They are not but through the API they can be set as selected.

StefanIvanov avatar Nov 21 '18 09:11 StefanIvanov

@StefanIvanov, I know, why though?

simeonoff avatar Nov 21 '18 10:11 simeonoff

Selecting of disabled dates is allowed only with the API, this Beauvoir is discussed and implemented when the Disabled Dates feature is created. This is behavior in all our controls, if something is disabled from the UI you can do it with the API.

nrobakova avatar Dec 05 '18 10:12 nrobakova

Since there’s a different style applied to special and disabled dates, then there’s no need to allow for disabled dates to be selected. I reported a new issue that disabled dates cannot be selected from the API #3715

nrobakova avatar Jan 24 '19 11:01 nrobakova