You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add system-wide status alert to all headers (#701)
Adds a sitewide warning banner to Header,
StudioHeader, and LearningHeader.
Controlled by three settings:
- STATUS_ALERT_ENABLED: runtime on/off from MFE
config endpoint
- STATUS_ALERT_MESSAGE: runtime message text from
MFE config endpoint
https://2u-internal.atlassian.net/browse/BOMS-562
Copy file name to clipboardExpand all lines: docs/using_custom_header.rst
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,3 +109,23 @@ Some Important Notes
109
109
- Intl formatted strings should be passed in content attribute.
110
110
- Only menu items in the main menu can be disabled.
111
111
- Menu items in the main menu and user menu can have ``isActive`` prop.
112
+
113
+
Status Alert
114
+
------------
115
+
116
+
A site-wide status banner can be displayed above the header to surface maintenance notices or other operational messages.
117
+
118
+
- The banner cannot be dismissed.
119
+
- The same behavior is available in the ``Header``, ``StudioHeader``, and ``LearningHeader`` components.
120
+
121
+
The following settings are supplied at runtime via the MFE config api, which allows it to be set globally (using LMS setting ``MFE_CONFIG``) or as a per-MFE override (using LMS setting ``MFE_CONFIG_OVERRIDES``).
122
+
123
+
``STATUS_ALERT_ENABLED``
124
+
************************
125
+
126
+
Runtime setting supplied via the MFE config api. Set to ``true`` to activate the banner. Defaults to off when absent.
127
+
128
+
``STATUS_ALERT_MESSAGE``
129
+
************************
130
+
131
+
Runtime setting supplied via the MFE config api. The text shown in the banner. The banner is suppressed when this is empty or absent.
0 commit comments