UX: Only link the icon for site setting history (#11265)

Linking the whole site setting name makes it tricky to copy/paste the name, which is common when asking/answering support queries.
This commit is contained in:
David Taylor 2020-11-17 15:59:55 +00:00 committed by GitHub
parent 96aca6d994
commit c62f082754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 13 deletions

View File

@ -1,8 +1,8 @@
<div class="setting-label">
<h3>
{{#if staffLogFilter}}
{{settingName}}
{{#link-to "adminLogs.staffActionLogs" (query-params filters=staffLogFilter) title=(i18n "admin.settings.history")}}
{{settingName}}
<span class="history-icon">
{{d-icon "history"}}
</span>

View File

@ -15,18 +15,13 @@
margin-bottom: 6px;
}
}
h3 {
a:any-link {
color: unset;
}
.history-icon {
opacity: 0;
transition: opacity 0.3s;
color: var(--primary-medium);
}
&:hover .history-icon {
opacity: 1;
}
.history-icon {
opacity: 0;
transition: opacity 0.3s;
color: var(--primary-medium);
}
&:hover .history-icon {
opacity: 1;
}
}
.setting-value {