Skip to content

Commit

Permalink
fix(ADA-1084): Color contrast of v7 player icons (#894)
Browse files Browse the repository at this point in the history
Issue:
menu controls can have very low contrast ratios

Fix:
make the gradient stronger and add a shadow to the icons and the text

Resolves ADA-1084
  • Loading branch information
Tzipi-kaltura committed Jun 23, 2024
1 parent 52fc63a commit 4521661
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/bottom-bar/_bottom-bar.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.player .bottom-bar {
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
color: #fff;
height: auto;
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/components/icon/icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.70));
}

.badge-icon:after {
Expand Down
1 change: 1 addition & 0 deletions src/components/time-display/_time-display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
font-size: 14px;
padding: 0 23px;
font-weight: bold;
filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.70));
}

.touch .time-display {
Expand Down
2 changes: 1 addition & 1 deletion src/components/top-bar/_top-bar.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.player .top-bar {
background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
color: #fff;
visibility: hidden;
position: relative;
Expand Down

0 comments on commit 4521661

Please sign in to comment.