Add icons and improve css styles for restriction field help

This commit is contained in:
Bryan Housel
2018-02-25 22:38:13 -05:00
parent b3b2be95b1
commit 97cbfc5c67
7 changed files with 72 additions and 15 deletions
+10 -1
View File
@@ -6,6 +6,7 @@ import {
import marked from 'marked';
import { t, textDirection } from '../util/locale';
import { svgIcon } from '../svg';
import { icon } from 'intro/helper';
// This currently only works with the 'restrictions' field
@@ -46,7 +47,15 @@ var fieldHelpHeadings = {
'help.field.restrictions.tips.title': 3
};
var replacements = {};
var replacements = {
fromShadow: icon('#turn-shadow', 'pre-text shadow from'),
allowShadow: icon('#turn-shadow', 'pre-text shadow allow'),
restrictShadow: icon('#turn-shadow', 'pre-text shadow restrict'),
onlyShadow: icon('#turn-shadow', 'pre-text shadow only'),
allowTurn: icon('#turn-yes', 'pre-text turn'),
restrictTurn: icon('#turn-no', 'pre-text turn'),
onlyTurn: icon('#turn-only', 'pre-text turn')
};
export function uiFieldHelp(fieldName) {