Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix font icon style assignment (bsc#1231378) #9329

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,9 @@ public static void renderPaginationLinks(PageContext pageContext,
for (String linkNameIn : linkNames) {
String[] linkData = links.get(linkNameIn);
ListTagUtil.write(pageContext, "<button ");
ListTagUtil.write(pageContext, "class=\"btn btn-default btn-xs");
ListTagUtil.write(pageContext, "class=\"btn btn-default btn-xs ");
ListTagUtil.write(pageContext, linkData[0]);

// if the link is disabled...
if (linkData[1] == null) {
ListTagUtil.write(pageContext, " disabled");
Expand All @@ -563,11 +565,7 @@ public static void renderPaginationLinks(PageContext pageContext,
}
ListTagUtil.write(pageContext, "\" title=\"");
ListTagUtil.write(pageContext, linkData[3]);
ListTagUtil.write(pageContext, "\">");
ListTagUtil.write(pageContext, "<i class=\"");
ListTagUtil.write(pageContext, linkData[0]);
ListTagUtil.write(pageContext, "\"></i>");
ListTagUtil.write(pageContext, "</button>");
ListTagUtil.write(pageContext, "\"></button>");
}
ListTagUtil.write(pageContext, "</div>");
}
Expand Down
1 change: 1 addition & 0 deletions java/spacewalk-java.changes.eth.fa2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Ensure icon fonts are loaded correctly on buttons (bsc#1231378)
8 changes: 8 additions & 0 deletions web/html/src/branding/css/susemanager/components/icons.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.fa,
[class^="fa-"] {
font-family: "FontAwesome";
}

[class*="spacewalk-icon-"] {
font-family: "spacewalk-icon";
}
8 changes: 8 additions & 0 deletions web/html/src/branding/css/susemanager/components/icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.fa,
[class^="fa-"] {
font-family: "FontAwesome";
}

[class*="spacewalk-icon-"] {
font-family: "spacewalk-icon";
}
1 change: 1 addition & 0 deletions web/html/src/branding/css/susemanager/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
@import "./components/date-time-picker.less";
@import "./components/header.less";
@import "./components/address.less";
@import "./components/icons.less";

// Responsive overrides
@import "../base/responsive-rules.less";
1 change: 1 addition & 0 deletions web/html/src/branding/css/susemanager/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
@import "./components/legend.scss";
@import "./components/help-block.scss";
@import "./components/collapse.scss";
@import "./components/icons.scss";

@import "./bootstrap-fixes.scss";

Expand Down
1 change: 1 addition & 0 deletions web/spacewalk-web.changes.eth.fa2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Ensure icon fonts are loaded correctly on buttons (bsc#1231378)
Loading