Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Change validation message color
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sl-eng committed Dec 21, 2012
1 parent 7b910bf commit 23e570f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Expand Up @@ -55,8 +55,6 @@ interface Styles extends CssResource
String container();

String header();

String hasError();
}

@UiField
Expand Down Expand Up @@ -98,15 +96,13 @@ public void updateValidationWarning(List<String> errors)
contents.add(errorLabel);
}
headerLabel.setText(messages.validationWarningsHeading(errors.size()));
headerLabel.addStyleName(style.hasError());
setVisible(true);
}

private void clear()
{
contents.clear();
headerLabel.setText(messages.validationWarningsHeading(0));
headerLabel.removeStyleName(style.hasError());
setVisible(false);
}

Expand Down
Expand Up @@ -17,31 +17,34 @@
{
font-size: 11px;
font-weight: bold;
text-decoration: underline;
color:#FFFFFF;
}

.label {
font-size: 11px;
color:#D14836;
}

.header {
width: 100%;
text-indent: 5px;
cursor: pointer;
color: #686868;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
background:#D14836;
}

.header tr:hover
{
background:#D14836;
color:#FFFFFF;
text-decoration:underline;
}

.content {
color: #D14836;
}

.hasError {
color: #D14836;
font-weight: bold;
}

</ui:style>


Expand Down

0 comments on commit 23e570f

Please sign in to comment.