Skip to content

Commit

Permalink
Merge pull request #5548 from avalonmediasystem/color_contrast
Browse files Browse the repository at this point in the history
Fix color contrast and minor bugs
  • Loading branch information
masaball authored Jan 5, 2024
2 parents 948447e + 716b319 commit fa2402a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/avalon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ div.alert-danger {
font-family: $museoSlab;
}
.sub-headline {
color: $secondary;
color: $blueGreen;
font-family: $museoSlab;
}

Expand Down
12 changes: 8 additions & 4 deletions app/assets/stylesheets/avalon/_collections.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
/*
* Copyright 2011-2023, The Trustees of Indiana University and Northwestern
* University. Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
*
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
Expand Down Expand Up @@ -43,4 +43,8 @@
.filter-collection-button-wrapper {
margin-top: 1rem;
}

.breadcrumb-item.active {
color: black;
}
}
15 changes: 10 additions & 5 deletions app/assets/stylesheets/avalon/_facets.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
/*
* Copyright 2011-2023, The Trustees of Indiana University and Northwestern
* University. Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
*
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
Expand Down Expand Up @@ -67,7 +67,7 @@
color: $primary;
border: 1px solid $gray;
background-color: $white;

&:hover {
background-color: $lightgray;
}
Expand Down Expand Up @@ -102,6 +102,11 @@ div[id*='facet-panel-'] {
white-space: pre-line;
}

.facet-values li .facet-label .selected,
.facet-values li .facet-count.selected {
color: #333333 !important;
}

.facet-values .facet-label {
display: table-cell;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/media_objects_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def combined_display_date media_object
when MediaObject, SpeedyAF::Proxy::MediaObject
[media_object.date_issued, media_object.date_created]
when Hash
[media_object[:document]['date_ssi'], media_object[:document]['date_created_ssi']]
[media_object[:document]['date_issued_ssi'], media_object[:document]['date_created_ssi']]
end
result = issued
result += " (Creation date: #{created})" if created.present?
Expand Down
5 changes: 4 additions & 1 deletion app/views/media_objects/_add_to_playlist.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,13 @@ Unless required by applicable law or agreed to in writing, software distributed
}
});
player.on('dispose', () => {
let addToPlaylistBtn = document.getElementById('addToPlaylistBtn');
currentSectionLabel = undefined;
$('#addToPlaylistPanel').collapse('hide');
resetAddToPlaylistForm();
addToPlaylistBtn.disabled = true;
if (addToPlaylistBtn) {
addToPlaylistBtn.disabled = true;
}
});
}
Expand Down

0 comments on commit fa2402a

Please sign in to comment.