Skip to content

Commit

Permalink
Merge pull request #3561 from alphagov/remove-global-bar
Browse files Browse the repository at this point in the history
Remove global bar component
  • Loading branch information
KludgeKML authored Feb 24, 2025
2 parents 5d370fe + fb7fdd7 commit ffa7fba
Show file tree
Hide file tree
Showing 20 changed files with 8 additions and 681 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ group :test do
gem "mocha", require: false
gem "shoulda-context"
gem "simplecov"
gem "timecop"
gem "webmock"
end
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ GEM
terser (1.2.5)
execjs (>= 0.3.0, < 3)
thor (1.3.2)
timecop (0.9.10)
timeout (0.4.3)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -645,7 +644,6 @@ DEPENDENCIES
simplecov
sprockets-rails
terser
timecop
webmock

RUBY VERSION
Expand Down
4 changes: 1 addition & 3 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
//= require govuk_publishing_components/components/cookie-banner
//= require govuk_publishing_components/components/cross-service-header
//= require govuk_publishing_components/components/feedback
//= require govuk_publishing_components/components/global-banner
//= require govuk_publishing_components/components/layout-header
//= require govuk_publishing_components/components/layout-super-navigation-header
//= require govuk_publishing_components/components/skip-link
//= require govuk_publishing_components/components/search-with-autocomplete

//= require modules/global-bar

//= require global-bar-init
//= require surveys
114 changes: 0 additions & 114 deletions app/assets/javascripts/global-bar-init.js

This file was deleted.

10 changes: 0 additions & 10 deletions app/assets/javascripts/libs/GlobalBarHelper.js

This file was deleted.

91 changes: 0 additions & 91 deletions app/assets/javascripts/modules/global-bar.js

This file was deleted.

8 changes: 1 addition & 7 deletions app/assets/javascripts/surveys.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@
if (userSurveys.canShowAnySurvey()) {
var activeSurvey = userSurveys.getActiveSurvey(userSurveys.defaultSurvey, userSurveys.smallSurveys)
if (activeSurvey !== undefined) {
// Hide global bar if one is showing
var globalBar = document.getElementById('global-bar')
if (globalBar) {
globalBar.style.display = 'none'
}
userSurveys.displaySurvey(activeSurvey)
}
}
Expand Down Expand Up @@ -434,8 +429,7 @@
}
var notificationIds = [
'.emergency-banner',
'#taxonomy-survey',
'#global-bar' // Currently about Coronavirus
'#taxonomy-survey'
]
var count = 0
for (var i = 0; i < notificationIds.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
@import "govuk_publishing_components/components/cross-service-header";
@import "govuk_publishing_components/components/feedback";
@import "govuk_publishing_components/components/emergency-banner";
@import "govuk_publishing_components/components/global-banner";
@import "govuk_publishing_components/components/layout-footer";
@import "govuk_publishing_components/components/layout-for-public";
@import "govuk_publishing_components/components/layout-header";
@import "govuk_publishing_components/components/layout-super-navigation-header";

@import "components/global-bar";
@import "components/survey";

@import "helpers/draft";
82 changes: 0 additions & 82 deletions app/assets/stylesheets/components/_global-bar.scss

This file was deleted.

5 changes: 0 additions & 5 deletions app/helpers/timed_update_helper.rb

This file was deleted.

Loading

0 comments on commit ffa7fba

Please sign in to comment.