Hi
I have two very small but annoying problems I wonder if you could help with.
Accordion
I am trying to control the title text colour in the top row of the accordion (see attached image). To do this I have added the following CSS which almost works however when the page is first rendered and I hover over it, the text still turns blue, but I need it to turn white. I have used object inspector and every combination I can think of, but I still cannot figure out how to do this.
/* Accordian */
/*Title bar - background*/
.e-accordion .e-acrdn-item.e-select > .e-acrdn-header {
background: #1e1e1e !important;
}
/*Title bar - background text on screen refresh*/
.e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-content {
color: antiquewhite;
}
/*Title bar - background text on screen refresh with hover*/
.e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-content:hover {
color: antiquewhite;
}
/*Title bar - text colour when expanded*/
.e-accordion .e-acrdn-item.e-select.e-selected.e-expand-state > .e-acrdn-header .e-acrdn-header-content {
color: antiquewhite;
}
/*Title bar - text colour when expanded with hover*/
.e-accordion .e-acrdn-item.e-select.e-selected.e-expand-state > .e-acrdn-header:hover .e-acrdn-header-content {
color: white;
}
/*Title bar - text colour when expanded with hover and focus*/
.e-accordion .e-acrdn-item.e-select.e-selected.e-expand-state > .e-acrdn-header:hover:focus .e-acrdn-header-content {
color: antiquewhite;
}
/*Title bar - text colour when collapsed*/
.e-accordion .e-acrdn-item.e-select.e-expand-state > .e-acrdn-header .e-acrdn-header-content {
color: antiquewhite;
}
/*Title bar - text colour when collapsed with hover*/
.e-accordion .e-acrdn-item.e-select.e-expand-state > .e-acrdn-header:hover .e-acrdn-header-content {
color: white;
}
/*Title bar - text colour when collapsed with hover and focus*/
.e-accordion .e-acrdn-item.e-select.e-expand-state > .e-acrdn-header:hover:focus .e-acrdn-header-content {
color: antiquewhite;
}
/*Title bar Icon*/
.e-accordion .e-acrdn-item.e-select.e-selected.e-expand-state > .e-acrdn-header > .e-toggle-icon, .e-accordion .e-acrdn-item.e-select.e-expand-state > .e-acrdn-header > .e-toggle-icon {
color: white;
}
/*title bar icon when moving*/
.e-accordion .e-tgl-collapse-icon::before {
content: '\e705';
color: white;
}
The second minor problem I have is that the Sf switches work fine on a PC, but on a phone they have to be tapped twice, it looks like they need to be tapped once to get the focus, then a second time to actually toggle them. I'm wondering if there is anything I can do about this?
There are a number of switches, generated programmaticaly and the checked state is bound to a list using the following code
<div style="border: 1px solid #757575; margin-bottom:1px; padding-left:1px;">
<label>@searchTag.SearchTag</label><br />
<SfSwitch IsToggle="true" CssClass="bar-color" Disabled="false" @bind-Checked="@SearchTags[localIndex].SearchTagEnabled" TChecked="bool"></SfSwitch>
</div>
thanks for any help you may be able to offer
Andy
Attachment:
Accordion_af31cde3.zip