Skip to content

Commit 5983a87

Browse files
Revert "fix(FEC-14080): Accessibility fix for the top bar and the bottom bar" (#947)
Reverts #941
1 parent 7886099 commit 5983a87

File tree

4 files changed

+0
-54
lines changed

4 files changed

+0
-54
lines changed

src/components/bottom-bar/_bottom-bar.scss

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
@mixin bottom-bar-gradient {
2-
position: absolute;
3-
bottom: 0;
4-
left: 0;
5-
width: 100%;
6-
height: var(--playkit-bar-gradient-height);
7-
max-height: 200px;
8-
opacity: 1;
9-
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
10-
content: "";
11-
}
12-
13-
.player {
14-
:global(.#{$video-filter}) {
15-
--playkit-bar-gradient-height: 50%;
16-
}
17-
18-
:global(.playkit-native-text ~ .#{$video-filter}) {
19-
--playkit-bar-gradient-height: #{$bottom-bar-max-height}px;
20-
}
21-
}
22-
231
.player .bottom-bar {
242
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
253
color: #fff;
@@ -126,12 +104,6 @@
126104
.player.ad-break,
127105
.player.menu-active {
128106
&:not(.overlay-active) {
129-
:global(.#{$video-filter}) {
130-
&:after {
131-
@include bottom-bar-gradient();
132-
}
133-
}
134-
135107
.bottom-bar {
136108
position: relative;
137109
opacity: 1;
@@ -166,10 +138,3 @@
166138
}
167139
}
168140
}
169-
170-
:global(.#{$video-filter}) {
171-
&:after {
172-
transition: #{$hover-animation-time}ms opacity ease-in-out;
173-
opacity: 0;
174-
}
175-
}

src/components/top-bar/_top-bar.scss

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@
7373
.player.ad-break,
7474
.player.menu-active {
7575
&:not(.overlay-active) {
76-
:global(.#{$video-filter}) {
77-
&:before {
78-
@include bottom-bar-gradient();
79-
80-
top: 0;
81-
background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
82-
}
83-
}
84-
8576
.top-bar {
8677
visibility: visible;
8778
margin-top: 0;
@@ -128,10 +119,3 @@
128119
}
129120
}
130121
}
131-
132-
:global(.#{$video-filter}) {
133-
&:before {
134-
transition: #{$hover-animation-time}ms opacity ease-in-out;
135-
opacity: 0;
136-
}
137-
}

src/styles/_variables.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ $bottom-bar-bottom-gutter: 4;
2727
$gui-gutter: 16;
2828
$gui-small-gutter: 8;
2929
$blur: 16px;
30-
$video-filter: playkit-video-filter;
3130
// *************** Backward Compatibility - Deprecated **************
3231
$brand-color: #006bff; // - refs in playkit-ui and related-plugin
3332
$white: #ffffff; // - refs in playkit-ui and related-plugin
@@ -73,7 +72,6 @@ $new-live-color: #e12437; // - refs in related-plugin
7372
defaultTransitionTime: $default-transition-time;
7473
bottomBarMaxHeight: $bottom-bar-max-height;
7574
topBarMaxHeight: $top-bar-max-height;
76-
videoFilter: $video-filter;
7775
// *************** Backward Compatibility - Deprecated **************
7876
brandColor: $brand-color;
7977
white: $white;

src/styles/exported.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ $playkit-background-color: var(--playkit-background-color);
5757
$elevated-color: var(--playkit-elevated-color);
5858
$paper-color: var(--playkit-paper-color);
5959
$protection-color: var(--playkit-protection-color);
60-
$video-filter: playkit-video-filter;

0 commit comments

Comments
 (0)