-
Notifications
You must be signed in to change notification settings - Fork 8
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
Full page alert banner #133
Conversation
Custom theme template and supporting asset library.
Config files for the *Full page* alert banner bundle.
Removed UUIDs from config files.
Updating module dependencies.
composer.json
Outdated
@@ -5,6 +5,7 @@ | |||
"homepage": "https://github.com/localgovdrupal/localgov_alert_banner", | |||
"minimum-stability": "dev", | |||
"require": { | |||
"drupal/field_group": "~3.1" | |||
"drupal/field_group": "~3.1", | |||
"localgovdrupal/localgov_media": "^1.0@alpha" |
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.
Think you mean localgovdrupal/localgov_core
which media is a submodule.
... However I'd like to reconsider if we should be adding dependencies here as this module currently stands alone. Could this be moved to a composer suggestion instead.
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.
Thanks Andy.
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.
localgovdrupal/localgov_core has now moved into the new suggests
section as per Andy's suggestion.
Fixed Composer dependency for localgov_core.
Hi Andy, |
Hi Andy, |
Thanks @Adnan-cds |
Replaced "$carbon" with corresponding colour code.
Text colour for link text within the modal body content.
…drupal/localgov_alert_banner into feature/full-page-alert
localgov_core is now a suggested dependency. It is only required when the localgov_alert_banner_full_page *submodule* is enabled.
Ready for review. Finally :) To summarize the change, it adds a submodule called localgov_alert_banner_full_page that can be enabled or disabled as needed. When enabled, it offers a bundle (i.e. variant) of the standard Alert banner that can be edited like any other Alert banner. @andybroomfield @danchamp @finnlewis @tom-steel @stephen-cox @willguv |
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.
My glance through at the code says this is fine.
Is there any other council that implements (or is planning on implementing) a full screen alert banner able to test and review this as I'm going to be away.
@danchamp @finnlewis (Lambeth?) or others.
@Adnan-cds I merged back from the 1.x branch to bring in the latest changes and resolve merge conflict in composer.json. I am now testing locally and when creating a full page alert, the moderation state form element is displayed on the "Are you sure you want to set live?' page. This seems to prevent me clicking the confirm, so I think the forms are conflicting in some way. Have you seen this? I assume the desired behaviour is to NOT see the moderation state, in line with the default alert banner variant. See screenshot below. |
… page alert banner.
@Adnan-cds I fixed that issue with 941536a |
When logged in, the full page alert is not full page, which is a bit jarring from a UX perspective. I'm guessing with a bit of CSS tinkering we can make it behave the same logged in or logged out. @Adnan-cds / @cjstevens78 it would be good to get this resolved this sprint, do you have time to look at this today? And perhaps @markconroy could you take a quick look at the css / js in this pull request? |
Thanks Finn :)
I will leave it for Chris. I like the "Big bad news" image :D |
@cjstevens78 are you able to take a look at this? It would be good to get this merged today or tomorrow if at all possible.... to coincide with the end of sprint. If not, if you can point me in the right direction.... :) |
@finnlewis I cant replicate this locally - although thinking about it I wonder if its maybe a good thing for it not to completely hijack the page when logged in because the user in this instance wants to see the site they are interacting with and aren't required to focus their attention on the pop up. |
@finnlewis we've just had a discussion about this at standup - could we get this merged in as is and look at the logged in overlay as a separate ticket? |
Sure thing, happy to merge as is. |
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.
Looks good to me!
Thanks Finn. Merging... |
Full page bundle for the Alert banner entity.
Contains config files, theme templates, and a related asset library.
This feature is totally dependent on Bootstrap making it unsuitable for general use outside the localgov_theme. The next step is to replace the Bootstrap specific code with plain Javascript and CSS.
Closes #134
FAO @andybroomfield @cjstevens78 @tom-steel @willguv