| Project: | formsPlayer |
| Version: | 1.5.4 |
| Component: | User interface |
| Category: | bug |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
I use xf:select1 and xf:input componment in my formular which are binding on required="true" attribut.
I have a specific styling (pink color) on this invalid componment.
.invalid .value
{
background-color:#FF9999; /*#DDDDFF;*/
}
Moreover, I use pc-focus styling to identify the current field which has the focus.
.pc-focus .value
{
background-color:#316AC5;
}
When the current field is a required field, the required styling overlap the pc-focus styling.
It's very boring for the user because this one thinks to have loose the focus.
Updates
| Status: | new | » invalid |
This is the nature of CSS, where conflicting styles are applied to an element, one of them has to win. In order to ensure that the one you want is the victor, you can
a) place its rule later in the stylesheet;
b) make the selector more specific;
or
c) use the !important declaration.
see Cascading order
| Status: | invalid | » closed |
OK.
Thanks.


Recent comments
19 weeks 3 days ago
19 weeks 3 days ago
23 weeks 1 day ago
24 weeks 3 days ago
24 weeks 4 days ago
24 weeks 4 days ago
24 weeks 6 days ago
25 weeks 7 min ago
25 weeks 3 hours ago
25 weeks 3 hours ago