Hi
The class “.ia_dateRangePicker__calendarBar__dayOfWeekTile” of date range picker component is borken in 8.1.4 and doesn’t work.
Indeed, it looks like it’s named iaDateRangePicker
instead of .ia_dateRangePicker
…
Here is the relevant CSS in PerspectiveComponents.css
:
.iaDateRangePicker {
width: 236px;
height: 246px;
border-radius: 3px;
display: flex;
flex-direction: column;
padding: 8px;
align-items: center; }
.iaDateRangePicker * {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none; }
.iaDateRangePicker.iaDateRangePicker--disabled {
cursor: not-allowed; }
.iaDateRangePicker.iaDateRangePicker--disabled * {
pointer-events: none; }
.iaDateRangePicker .monthAndYearSelectorContainer {
display: flex;
height: 30px;
align-items: center;
justify-content: center;
margin-top: 2px;
margin-bottom: 2px; }
.iaDateRangePicker .yearSelectorContainer {
margin-left: 8px; }
.iaDateRangePicker .yearSelectorContainer .yearSelector {
width: 65px; }
.iaDateRangePicker .yearSelectorContainer .yearSelector > span {
position: absolute;
right: 0;
top: 52%; }
.iaDateRangePicker .yearSelectorContainer .yearSelector select {
width: 100%; }
.iaDateRangePicker .monthSelectorContainer .monthSelector {
width: 100px; }
.iaDateRangePicker .monthSelectorContainer .monthSelector select {
width: 100%; }
.iaDateRangePicker .calendarBar {
display: grid;
grid-template-columns: repeat(7, 30px);
grid-template-rows: repeat(1, 30px); }
.iaDateRangePicker .calendarBar .dayOfWeekTile {
height: 30px;
width: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: default;
pointer-events: none; }
.iaDateRangePicker .calendar {
display: grid;
grid-template-columns: repeat(7, 30px);
grid-template-rows: repeat(5, 30px); }
.iaDateRangePicker .calendar .dayTile {
height: 30px;
width: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer; }
.iaDateRangePicker .calendar .dayTile.active.outOfRange {
cursor: not-allowed; }
.iaDateRangePicker .calendar .dayTile.filler {
cursor: default;
opacity: 0.5; }
EDIT: am an idiot; see below.
but why other related class of .ia_dateRangePicker__ is working fine but not this one?
I did find an instance of that class in light.css
, the theme file. Here is the style being applied:
.ia_dateRangePicker__calendarBar__dayOfWeekTile {
color: var(--neutral-90);
font-size: 0.875rem;
line-height: 1rem;
font-weight: 500;
}
As to why it isn’t working, I’m not sure. Are you using a custom theme?