My current approach involves using the :after
selector to include asterisks next to required labels:
.field-name
{
color: #444;
font-family: verdana;
font-size: 0.85em;
line-height: 2em;
}
.field-name.required:after
{
content: '*';
color: #ff0000;
}
The implementation functions correctly outside of a jQuery dialog. However, within a jQuery dialog, the asterisks are only visible when hovering over it. You can observe this behavior in this jsFiddle example in IE8. After clicking the button, move your mouse over the dialog window. This issue does not arise in other modern browsers. Is this a documented bug?