Skip to content

A free open source IT asset/license management system

Turned the X in the inline form error into a css :before selector

snipe1a31a03e21fa
diff --git a/resources/assets/less/app.less b/resources/assets/less/app.less
index 229233c05b..c880636b50 100644
--- a/resources/assets/less/app.less
+++ b/resources/assets/less/app.less
@@ -158,6 +158,16 @@ a.accordion-header {
display: block;
}
+// This sets the "x" icon in front of error messages via CSS (instead of HTML)
+// so that regardless of whether it's being invoked via server side or JS,
+// it renders consistently
+.alert-msg::before {
+ content: "\f00d";
+ font-family: "Font Awesome 5 Free";
+ font-weight: 900;
+ margin-right: 0.35em;
+}
+
.input-group[class*="col-"] {
padding-right: 15px;
padding-left: 15px;