Skip to content

Font toggle not working in diffbrowsers_user_strings.html #173

@kalapi

Description

@kalapi

Issue description:

The user strings are added as 'divs' with class names created using the font_class.class_name string formatting on line 12 (for e.g. old-Bold, old-Regular, etc.).

These classnames are not targetted by the switchFonts function and as a result don't update when toggling.

Possible solutions:

  1. Modify line 12 to use the box-text class as the main class with the class name formatter string being the sub-class.
    I.e.: <div class="box-text {{ font_class.class_name }}" ...

  2. Add a JS font switching function under {% block js %} in diffbrowsers_user_strings.html which specifically targets the automatically generated class name (font_class.class_name).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions