Skip to content

Commit

Permalink
modify h2 -> h3 for heading level compat and remove unused class
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Aug 7, 2018
1 parent 40ccec4 commit ebd1be2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@extend %downloads-exports;

.panel-heading {
h2 {
h3 {
display: inline;
}

Expand Down
4 changes: 2 additions & 2 deletions app/views/catalog/_show_downloads.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<% if document.direct_download.present? || document.hgl_download.present? || document.iiif_download.present? %>
<div class="panel panel-default downloads">
<div class="panel-heading">
<h2 class="mb-0 h6"><%= t('geoblacklight.download.download').pluralize %></h2>
<h3 class="h5"><%= t('geoblacklight.download.download').pluralize %></h3>
</div>

<ul class="list-group list-group-flush">
Expand All @@ -16,7 +16,7 @@
<% if document.download_types.present? %>
<div class="panel panel-default exports">
<div class="panel-heading">
<h2 class="mb-0 h6"><%= t('geoblacklight.download.export_formats') %></h2>
<h3 class="h5"><%= t('geoblacklight.download.export_formats') %></h3>
</div>

<ul class="list-group list-group-flush">
Expand Down
4 changes: 2 additions & 2 deletions spec/features/download_layer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
scenario 'layer with direct download and wms/wfs should include all download types' do
sign_in
visit solr_document_path('stanford-cg357zz0321')
expect(page).to have_css 'h2', text: 'Downloads'
expect(page).to have_css 'h3', text: 'Downloads'
expect(page).to have_css 'a', text: 'Original Shapefile'
expect(page).to have_css 'h2', text: 'Export Formats'
expect(page).to have_css 'h3', text: 'Export Formats'
expect(page).to have_css 'a', text: 'Export'
end
scenario 'clicking GeoTIFF button for Harvard layer should show email form', js: true do
Expand Down

0 comments on commit ebd1be2

Please sign in to comment.