Skip to content

Commit

Permalink
Merge branch 'main' into fix-Links-on-New-User-Collection-page-to-not…
Browse files Browse the repository at this point in the history
…-meet-WCAG-AA-minimum-color-contrast-requirements
  • Loading branch information
rodyoukai authored Dec 13, 2024
2 parents 43ca346 + dd6f355 commit 744bcf3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
8 changes: 4 additions & 4 deletions app/assets/javascripts/hyrax/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ function getStatusActivity(){
}
else if(isCollapsed){
resultDiv.classList.remove("in");
resultDiv.setAttribute("aria-expanded", "false");
// resultDiv.setAttribute("aria-expanded", "false");
}else{
resultDiv.classList.add("in");
resultDiv.setAttribute("aria-expanded", "true");
// resultDiv.setAttribute("aria-expanded", "true");
}
}

Expand All @@ -55,10 +55,10 @@ function getStatusSettings(){
}
else if(isCollapsed){
resultDiv.classList.remove("in");
resultDiv.setAttribute("aria-expanded", "false");
// resultDiv.setAttribute("aria-expanded", "false");
}else{
resultDiv.classList.add("in");
resultDiv.setAttribute("aria-expanded", "true");
// resultDiv.setAttribute("aria-expanded", "true");
}
}

Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/hyrax/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,7 @@ label.disabled {
margin-bottom: 1rem;
}
}

#content_block_page {
display: block;
}
2 changes: 1 addition & 1 deletion app/views/hyrax/admin/features/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>Status</th>
<th class="name"><%= t('.feature') %></th>
<th class="description"><%= t('.description') %></th>
<th class="action"><%= t('.action') %></th>
Expand Down
6 changes: 3 additions & 3 deletions app/views/hyrax/content_blocks/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -45,7 +45,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -61,7 +61,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</td>
<td>
<div class="media">
<%= link_to [main_app, document], "class" => "media-left mr-3", "aria-hidden" => "true" do %>
<%= link_to [main_app, document], "class" => "media-left mr-3" do %>
<%= document_presenter(document)&.thumbnail&.thumbnail_tag(
{ class: "d-none d-md-block file_listing_thumbnail", alt: document.title_or_label }, { suppress_link: true }
) %>
Expand Down
8 changes: 4 additions & 4 deletions app/views/hyrax/pages/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -52,7 +52,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -68,7 +68,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -84,7 +84,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand Down

0 comments on commit 744bcf3

Please sign in to comment.