Move all of our CSS rules into our CssResource
This save us from needing to download the application's CSS resources in a separate HTTP connection. It also allowed us to find and remove some unused class names. I may have broken a few style classes here. I plan to break the CSS up into smaller chunks and fix any broken styles as I go through them. Change-Id: I81b60ff8d93be3faedf606d2f40a6f89d401909d Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.client.ui;
|
||||
|
||||
import com.google.gerrit.client.Gerrit;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.dom.client.AnchorElement;
|
||||
import com.google.gwt.user.client.DOM;
|
||||
@@ -27,7 +28,7 @@ public class LinkMenuItem extends InlineHyperlink {
|
||||
|
||||
public LinkMenuItem(final String text, final String targetHistoryToken) {
|
||||
super(text, targetHistoryToken);
|
||||
setStyleName("gerrit-MenuItem");
|
||||
setStyleName(Gerrit.RESOURCES.css().menuItem());
|
||||
Accessibility.setRole(getElement(), Accessibility.ROLE_MENUITEM);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user