FEATURE: Support using system font in wizard font step (#10742)

Co-authored-by: Bianca Nenciu <nbianca@users.noreply.github.com>
This commit is contained in:
Penar Musaraj
2020-09-25 09:39:14 -04:00
committed by GitHub
parent 8fcfb9586c
commit b1692422b1
5 changed files with 14 additions and 5 deletions

View File

@ -217,7 +217,7 @@ class Wizard
)
DiscourseFonts.fonts.each do |font|
field.add_choice(font[:key], data: { class: font[:key].tr("_", "-"), font_stack: font[:stack] })
field.add_choice(font[:key], data: { class: font[:key].tr("_", "-"), name: font[:name] })
end
step.on_update do |updater|