Sitewide announcement block for D10+

Created on 15 January 2025, 3 months ago

Problem/Motivation

Create functionality to replace the sitewide announcement block for the drupalorg upgrade.

Proposed resolution

Banner Region and Sitewide Announcements:

  • The banner region will always appear at the very top of a page whether or not it’s a landing page.
  • It will only ever contain an announcement block.
  • The announcement block content has two variations: image, and no image.
  • The image version should look like the site-wide announcement design in Figma
  • The no image version should look like the simple announcement a.k.a headache component.
  • The announcement block will be modeled after the current D7 block. Which means
  • There are 10 potential versions.
  • Each version lives on a vertical tab with its own form
  • Each version has an option to be put into a rotation
  • All versions share the same role based visibility settings
  • All of them share the same page visibility settings
  • All of them share the same unique block ID (used for the close button)
  • All of them share the same optional background image

Announcements are always dismissible

  • Dismissibility is a property of the banner region itself and not the announcement block contained within it.
    The approach to the dismissibility functionality will also be appropriated from D7. (set a cookie in local storage).
πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States spicy.werewolf

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024