Skip to content

Commit 744bcf3

Browse files
authored
Merge branch 'main' into fix-Links-on-New-User-Collection-page-to-not-meet-WCAG-AA-minimum-color-contrast-requirements
2 parents 43ca346 + dd6f355 commit 744bcf3

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

app/assets/javascripts/hyrax/collapse.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ function getStatusActivity(){
4040
}
4141
else if(isCollapsed){
4242
resultDiv.classList.remove("in");
43-
resultDiv.setAttribute("aria-expanded", "false");
43+
// resultDiv.setAttribute("aria-expanded", "false");
4444
}else{
4545
resultDiv.classList.add("in");
46-
resultDiv.setAttribute("aria-expanded", "true");
46+
// resultDiv.setAttribute("aria-expanded", "true");
4747
}
4848
}
4949

@@ -55,10 +55,10 @@ function getStatusSettings(){
5555
}
5656
else if(isCollapsed){
5757
resultDiv.classList.remove("in");
58-
resultDiv.setAttribute("aria-expanded", "false");
58+
// resultDiv.setAttribute("aria-expanded", "false");
5959
}else{
6060
resultDiv.classList.add("in");
61-
resultDiv.setAttribute("aria-expanded", "true");
61+
// resultDiv.setAttribute("aria-expanded", "true");
6262
}
6363
}
6464

app/assets/stylesheets/hyrax/_styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,7 @@ label.disabled {
7272
margin-bottom: 1rem;
7373
}
7474
}
75+
76+
#content_block_page {
77+
display: block;
78+
}

app/views/hyrax/admin/features/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<table class="table table-striped">
1010
<thead>
1111
<tr>
12-
<th></th>
12+
<th>Status</th>
1313
<th class="name"><%= t('.feature') %></th>
1414
<th class="description"><%= t('.description') %></th>
1515
<th class="action"><%= t('.action') %></th>

app/views/hyrax/content_blocks/_form.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</div>
3030
<div class="card-footer d-flex justify-content-end">
3131
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
32-
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
32+
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
3333
</div>
3434
<% end %>
3535
</div>
@@ -45,7 +45,7 @@
4545
</div>
4646
<div class="card-footer d-flex justify-content-end">
4747
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
48-
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
48+
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
4949
</div>
5050
<% end %>
5151
</div>
@@ -61,7 +61,7 @@
6161
</div>
6262
<div class="card-footer d-flex justify-content-end">
6363
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
64-
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
64+
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
6565
</div>
6666
<% end %>
6767
</div>

app/views/hyrax/dashboard/collections/_show_document_list_row.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</td>
88
<td>
99
<div class="media">
10-
<%= link_to [main_app, document], "class" => "media-left mr-3", "aria-hidden" => "true" do %>
10+
<%= link_to [main_app, document], "class" => "media-left mr-3" do %>
1111
<%= document_presenter(document)&.thumbnail&.thumbnail_tag(
1212
{ class: "d-none d-md-block file_listing_thumbnail", alt: document.title_or_label }, { suppress_link: true }
1313
) %>

app/views/hyrax/pages/_form.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</div>
3737
<div class="card-footer d-flex justify-content-end">
3838
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
39-
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
39+
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
4040
</div>
4141
<% end %>
4242
</div>
@@ -52,7 +52,7 @@
5252
</div>
5353
<div class="card-footer d-flex justify-content-end">
5454
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
55-
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
55+
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
5656
</div>
5757
<% end %>
5858
</div>
@@ -68,7 +68,7 @@
6868
</div>
6969
<div class="card-footer d-flex justify-content-end">
7070
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
71-
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
71+
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
7272
</div>
7373
<% end %>
7474
</div>
@@ -84,7 +84,7 @@
8484
</div>
8585
<div class="card-footer d-flex justify-content-end">
8686
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
87-
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
87+
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
8888
</div>
8989
<% end %>
9090
</div>

0 commit comments

Comments
 (0)