Fix required button styling in SiteConfig (#10857) [deploy]
* Use crayons-indicator--critical class when rendering Required note * Add a bit of padding to the site-config label to give button room
This commit is contained in:
parent
5b211e33d7
commit
54cb0ecefe
2 changed files with 2 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ label {
|
||||||
.site-config__label {
|
.site-config__label {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
padding-bottom: var(--su-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile__group-toggle {
|
.profile__group-toggle {
|
||||||
|
|
|
||||||
|
|
@ -285,7 +285,7 @@ module ApplicationHelper
|
||||||
def admin_config_label(method, content = nil)
|
def admin_config_label(method, content = nil)
|
||||||
content ||= raw("<span>#{method.to_s.humanize}</span>")
|
content ||= raw("<span>#{method.to_s.humanize}</span>")
|
||||||
if method.to_sym.in?(VerifySetupCompleted::MANDATORY_CONFIGS)
|
if method.to_sym.in?(VerifySetupCompleted::MANDATORY_CONFIGS)
|
||||||
content = safe_join([content, raw("<span class='crayons-indicator'>Required</span>")])
|
content = safe_join([content, raw("<span class='crayons-indicator crayons-indicator--critical'>Required</span>")])
|
||||||
end
|
end
|
||||||
|
|
||||||
tag.label(content, class: "site-config__label crayons-field__label", for: "site_config_#{method}")
|
tag.label(content, class: "site-config__label crayons-field__label", for: "site_config_#{method}")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue