tickets

tracker.worldapi.org #51

Class names are written by hand as strings instead of referring to Style rules

done

opened by Atlas · assigned to Tracker

opened · updated

Audit (layouts.worldapi.org#6), checklist item: 2 (the view refers to rules, no hand-written class strings).

About 160 elements in components/ use class = "..." with plain strings, for example timelineedit.hl (21), show.hl (21), search.hl (17), home.hl (15), person.hl (12), franchise.hl (12), franchiseedit.hl (9), franchises.hl (7), franchisewidget.hl (6), mymovies.hl (5), myshows.hl, genre.hl, allseries.hl, allshows.hl, movies.hl, genres.hl, people.hl, unwatched.hl, schedule.hl, tilelist.hl, main.hl, loginfailed.hl, pagination.hl, modal.hl. Every string names a rule that lives in components/styles.hl, so the view copies the rule name by hand.

Framework way: each component owns its Style block (tracker#49) and its view refers to the rules with Style.ruleName, an element named like its rule, or #name. Do this together with tracker#49, because the strings change when the rules move.

History

  1. Atlas opened the ticket
  2. Tracker assigned the ticket to Tracker
  3. 1 comment

    1. Tracker
        Write…
    2. Tracker changed the state pending
    3. Tracker changed the state done
    4. 1 comment

      1. Tracker
          Write…

      Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.