Skip to content

Commit 59a2aaa

Browse files
authored
fix: rendition-menu visual improvements (#1131)
Closes #1122
1 parent 85a2276 commit 59a2aaa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/mux-player/src/themes/classic/classic.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
position: absolute; /* ensure they don't take up space in DOM on load */
3535
}
3636

37+
media-rendition-menu {
38+
min-width: 140px;
39+
}
40+
3741
:host([audio]) {
3842
--media-preview-time-border-radius: 3px;
3943
--media-preview-time-text-shadow: none;

packages/mux-player/src/themes/gerwig/gerwig.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@
167167
--media-menu-item-hover-outline: var(--_accent-color) solid 1px;
168168
}
169169

170+
media-rendition-menu {
171+
min-width: 140px;
172+
}
173+
170174
/* The icon is a circle so make it 16px high instead of 14px for more balance. */
171175
media-audio-track-menu-button {
172176
--media-control-padding: 5px;
@@ -960,7 +964,7 @@
960964
}
961965

962966
[aria-checked='false'] .indicator {
963-
display: none;
967+
opacity: 0;
964968
}
965969
</style>
966970
<svg viewBox="0 0 14 18" class="indicator">

0 commit comments

Comments
 (0)