Add recommended option badge

This commit is contained in:
hensm
2020-06-27 19:37:01 +01:00
parent 4cee524620
commit 5cf92df3ba
3 changed files with 17 additions and 0 deletions

View File

@@ -374,6 +374,11 @@
, "description": "Mirroring app ID option description."
}
, "optionsOptionRecommended": {
"message": "recommended"
, "description": "Badge next to option label indicating boolean option is recommended enabled."
}
, "optionsReset": {
"message": "Restore Defaults"
, "description": "Restore default options button label."

View File

@@ -380,6 +380,9 @@ class OptionsApp extends Component<{}, OptionsAppState> {
</div>
<div className="option__label">
{ _("optionsUserAgentWhitelistEnabled") }
<span className="option__recommended">
{ _("optionsOptionRecommended") }
</span>
</div>
</label>

View File

@@ -294,6 +294,15 @@
display: inline-block;
}
.option__recommended {
background-color: var(--blue-60);
border-radius: 2px;
color: white;
font-size: smaller;
margin-inline-start: 5px;
padding: 0 5px;
}
.option__description {
color: var(--secondary-color);
font-size: smaller;