Skip to content

Commit

Permalink
Btn info inconsistent (#8907)
Browse files Browse the repository at this point in the history
* Fixed info button style in new theme
* Added change log
* Fixed spcae error in ViewHelper.java
  • Loading branch information
bisht-richa authored and admd committed Jul 24, 2024
1 parent 7c06a2f commit ec05c29
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 1 deletion.
6 changes: 5 additions & 1 deletion java/code/src/com/suse/manager/webui/utils/ViewHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ public enum ViewHelper {
"rhn/channels/software/Search.do",
"/rhn/manager/systems/ssm/coco/settings",
"/rhn/systems/ssm/audit/ScheduleXccdf.do",
"/rhn/systems/ssm/provisioning/PowerManagementConfiguration.do"
"/rhn/systems/ssm/provisioning/PowerManagementConfiguration.do",
"/rhn/systems/details/kickstart/PowerManagement.do",
"/rhn/systems/ssm/provisioning/PowerManagementOperations.do",
"/rhn/channels/ChannelDetail.do",
"/rhn/software/packages/Details.do"
);

ViewHelper() { }
Expand Down
17 changes: 17 additions & 0 deletions web/html/src/branding/css/susemanager/components/buttons.suma.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,23 @@
}
}

.btn-info {
&,
&:active,
&:focus,
&:disabled,
&.disabled {
&,
&:hover {
border-color: $eos-bc-cerulean-500;

&:not(:disabled):not(.disabled):not(.text-muted):hover {
color: $white;
}
}
}
}

// Warning shouldn't currently be used anywhere, but cover it just in case
.btn-warning,
.btn-danger {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,15 @@
border-color: #d43f3a;
}
}

.btn-info {
color: #fff;
background-color: #5bc0de;
border-color: #46b8da;

&:hover{
color: #fff;
background-color: #31b0d5;
border-color: #269abc;
}
}
4 changes: 4 additions & 0 deletions web/html/src/core/spa/view-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const BOOTSTRAP_READY_PAGES: string[] = [
"/rhn/manager/systems/ssm/coco/settings",
"/rhn/systems/ssm/audit/ScheduleXccdf.do",
"/rhn/systems/ssm/provisioning/PowerManagementConfiguration.do",
"/rhn/systems/details/kickstart/PowerManagement.do",
"/rhn/systems/ssm/provisioning/PowerManagementOperations.do",
"/rhn/channels/ChannelDetail.do",
"/rhn/software/packages/Details.do",
];

export const onEndNavigate = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed btn-info style in new theme

0 comments on commit ec05c29

Please sign in to comment.