Skip to content

Commit

Permalink
fix(mobile): input dark mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Sep 11, 2023
1 parent 63a25d0 commit 7c8871b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class SkeletonPoseViewerComponent extends BasePoseViewerComponent impleme

// Some browsers videos can't have a transparent background
const isTransparencySupported = 'chrome' in window; // transparency is currently not supported in firefox and safari
if (this.mediaRecorder && !isTransparencySupported && !this.colorSchemeMedia.matches) {
if (this.mediaRecorder && !isTransparencySupported) {
// Make the video background the same as the element's background
const el = document.querySelector('app-signed-language-output');
this.background = getComputedStyle(el).backgroundColor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,17 @@ textarea#desktop {
ion-textarea#mobile {
margin-top: 6px;
margin-bottom: 6px;
background-color: #fff;
border-radius: 20px;
--padding-start: 10px;
--highlight-color: var(--ion-color-primary);

/* Address strange height on iOS */
&.sc-ion-textarea-ios-h {
/* Address strange height on iOS */
min-height: initial;

background-color: white;
@media (prefers-color-scheme: dark) {
background-color: #202124;
}
}
}

0 comments on commit 7c8871b

Please sign in to comment.