fix(multicheck): move warning icon style to checkbox stylesheet
This commit is contained in:
parent
75c43493a8
commit
42470e9201
2 changed files with 9 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ frappe.ui.form.ControlMultiCheck = class ControlMultiCheck extends frappe.ui.for
|
|||
option.warning_title || __("Condition based field")
|
||||
);
|
||||
const warning_icon = option.warning
|
||||
? `<span class="text-muted" style="margin-left: 4px; display: inline-flex; align-items: center; vertical-align: middle; line-height: 1;" data-toggle="tooltip" title="${warning_title}">${frappe.utils.icon(
|
||||
? `<span class="text-muted multicheck-warning-icon" data-toggle="tooltip" title="${warning_title}">${frappe.utils.icon(
|
||||
"info",
|
||||
"xs"
|
||||
)}</span>`
|
||||
|
|
|
|||
|
|
@ -56,6 +56,14 @@ input[type="checkbox"] {
|
|||
}
|
||||
}
|
||||
|
||||
.checkbox .multicheck-warning-icon {
|
||||
margin-left: 4px !important;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
vertical-align: middle;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* The switch - the box around the slider */
|
||||
.switch {
|
||||
position: relative;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue