-
Notifications
You must be signed in to change notification settings - Fork 5
[MOOSE-263] FE Announcement Block #243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MOOSE-263] FE Announcement Block #243
Conversation
|
Just looking to get this merged into the feature branch so we can get started on hooking it up to BE. |
dpellenwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion, then good to merge!
| $heading = 'Important Update'; | ||
| $body = 'We’ve launched a new feature you should check out.'; | ||
| $cta_label = 'Learn More'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably good to wrap this in a localization call by default.
What does this do/fix?
This pull request introduces a new "Announcements" block to the theme, providing both frontend and editor support for displaying site-wide announcements with configurable styles, dismiss functionality, and improved utility classes. It also includes supporting changes to styling utilities, icon variables, and PHPStan configuration.
Announcements Block Implementation:
tribe/announcementsblock, including registration (index.js), block metadata (block.json), server-side rendering (render.php), editor UI (edit.js), and frontend interactivity (view.js). The block supports themes, alignment, dismissibility, and call-to-action buttons. [1] [2] [3] [4] [5]Blocks_Definer.php).Styling and Utility Enhancements:
actions/_mixins.pcss,actions/_utilities.pcss), and imported these utilities in the main utilities file. [1] [2] [3]style.pcss,editor.pcss). [1] [2]Design System Updates:
color/_variables.pcss).icons/_variables.pcss).Tooling:
distdirectory from static analysis.These changes collectively enable a flexible, themeable announcements system with modern UX and maintainable code structure.
QA
Links to relevant issues
Screenshots/video: