docbrown/app/views/users/_font_selector.html.erb
ludwiczakpawel 877bdba176
Typography fix & Optimization (#9650)
* flare tag line height

* .

* dropdown fix + actions bar fix

* actions bar on mob

* fixing typography and improving font handling

* cleanup

* variables naming

* fonts swapping

* Makes user's default font render as SiteConfig.default_font

* Trigger checks

* Fixes missing user model specs

* Fixes storybook CI error import & logged out user font set with default

* Limits default_font config to serif, sans-serif & open-dyslexic

* Default font description text

Co-authored-by: Fernando Valverde <fdov88@gmail.com>
2020-08-18 08:05:51 -04:00

6 lines
316 B
Text

<label class="rich-selector crayons-field crayons-field--radio font-selector--<%= font.tr("_", "-") %>">
<%= f.radio_button :config_font, font, checked: @user.decorate.config_font_name == font, class: "crayons-radio" %>
<div class="crayons-field__label fw-normal">
<%= font.tr("_", " ") %>
</div>
</label>