Skip to content

A platform for community discussion. Free, open, simple.

DEV: Comment about the header components order (#34532)

Sérgio Saquetimd00a6a8f6703
diff --git a/app/assets/javascripts/discourse/app/components/header.gjs b/app/assets/javascripts/discourse/app/components/header.gjs
index 02223eec649..df244a5b896 100644
--- a/app/assets/javascripts/discourse/app/components/header.gjs
+++ b/app/assets/javascripts/discourse/app/components/header.gjs
@@ -225,6 +225,9 @@ export default class GlimmerHeader extends Component {
@topicInfoVisible={{@topicInfoVisible}}
@narrowDesktop={{this.site.narrowDesktopView}}
>
+ {{! WARNING: Do not modify the order of `div.header-buttons` and the `<Icons />` component.
+ These components have DAG plugin APIs for the header, and changing their order will break
+ the layout of themes and Theme Components that use these APIs. }}
<span class="header-buttons">
{{#each (headerButtons.resolve) as |entry|}}
{{#if (and (eq entry.key "auth") (not this.currentUser))}}