Restyled TabsElement

This commit is contained in:
Rsl1122 2019-07-20 11:15:52 +03:00
parent 693884a7c7
commit f0b31c8c4b

View File

@ -48,10 +48,10 @@ public class TabsElement {
String navText = tab.getNavText();
String contentHtml = tab.getContentHtml();
nav.append("<li role=\"presentation\"").append(first ? " class=\"active\"" : "")
.append("><a href=\"#").append(id).append("\" data-toggle=\"tab\">")
nav.append("<li role=\"presentation\" class=\"nav-item col-black\"")
.append("><a href=\"#").append(id).append("\" class=\"nav-link col-black").append(first ? " active" : "").append('"').append(" data-toggle=\"tab\">")
.append(navText).append("</a></li>");
content.append("<div role=\"tabpanel\" class=\"tab-pane fade").append(first ? " in active" : "")
content.append("<div role=\"tabpanel\" class=\"tab-pane fade").append(first ? " in active show" : "")
.append("\" id=\"").append(id).append("\">")
.append(contentHtml).append("</div>");
first = false;