רכיבי הנושא כבר לא מחליפים את CSS של הנושא?

Somehow the behavior has changed in how Discourse handles CSS in theme components. EDIT I did not understand what I was doing. I’m leaving this topic (in Dev instead of Bug) for future reference.

Very minimal example:

On Discourse 3.4.2 and tests-passed as of this morning (but this was also happening yesterday on 3.4.1)

Main theme #1: red border around navigation container

Theme component #2: blue border around navigation container

Theme component #2 is assigned to theme #1

Expected

Blue border around navigation container

Reality

Red border around navigation container

לייק 1

קיצור: אני טיפש.

סגנונות עליונים ממוינים כך

          אם stylesheets.size e 1
            stylesheets =
              stylesheets.sort_by do |s|
                [s[:remote] ? 0 : 1, s[:theme_id] == @theme_id ? 1 : 0, s[:theme_name]]
              end
          end

כשניסיתי לשחזר, השתמשתי רק בסגנונות עליונים מקומיים.

המציאות היא שהסגנונות העליונים נטענים בסדר הבא:

  • סגנונות עליונים מרחוק
    • רכיבי נושא, בסדר אלפביתי
    • נושא ראשי
  • סגנונות עליונים מקומיים
    • רכיבי נושא, בסדר אלפביתי
    • נושא ראשי
7 לייקים