From 8b8d6e6a5064d0c4fd73398bc28983ad42eaacce Mon Sep 17 00:00:00 2001 From: Ludovic Iafrate Date: Wed, 12 Aug 2026 18:06:30 -0400 Subject: [PATCH] docs(targets): document the login-button disable target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The top bar's sign-in entry point for anonymous users can be disabled via window.lumapps.disable('login-button'), same as favorites, bookmarks, and the contribution button. It never affects the avatar/profile menu shown to a connected user — that element cannot be disabled. Renamed from user-avatar following review feedback: the target only ever affects the anonymous login link, not an actual avatar. --- docs/javascript/api.md | 1 + docs/javascript/capabilities.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/docs/javascript/api.md b/docs/javascript/api.md index 8cfb963..efe5cc7 100644 --- a/docs/javascript/api.md +++ b/docs/javascript/api.md @@ -1377,6 +1377,7 @@ These are the ids of the components that can be customized: - [Search box](./capabilities#search-box) - [Bookmarks](./capabilities#bookmarks) - [Contribution button](./capabilities#contribution-button) +- [Login button](./capabilities#login-button) ### getCurrentContent diff --git a/docs/javascript/capabilities.md b/docs/javascript/capabilities.md index 4fe4f6c..c917881 100644 --- a/docs/javascript/capabilities.md +++ b/docs/javascript/capabilities.md @@ -407,6 +407,20 @@ Target that allows customizing the entire header of the application, which englo | Disable | No compatibility | | Changing text | No compatibility | +### Login button + +Target for the top bar's sign-in entry point, shown only to anonymous (not logged in) users. It has no effect on the avatar/profile menu shown to a connected user — that element cannot be disabled. + +#### Compatibility + +| | | +| ------------- | --------------------------------------------------------------------------------------------------- | +| Target ID | `login-button` | +| Description | Target for the login button displayed at the top bar for anonymous users. | +| Placements | No compatibility | +| Disable | Can be disabled. Only applies to anonymous users; a connected user's avatar/menu is never disabled. | +| Changing text | No compatibility | + ### Logo Target that allows customizing the surroundings of the site's [logo](https://docs.lumapps.com/docs/explore-l08263938963294604/explore-l10172021770563788).