Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(Video): move Video off of scss #2944

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix css
  • Loading branch information
aresnik11 committed Oct 11, 2024
commit efd8511777b217b6afd1df11d7a95519ef5519bd
27 changes: 12 additions & 15 deletions packages/gamut/src/Video/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { PlayIcon } from '@codecademy/gamut-icons';
import { css } from '@codecademy/gamut-styles';
import styled from '@emotion/styled';
import { useState } from 'react';
import * as React from 'react';
@@ -8,20 +7,18 @@ import ReactPlayer from 'react-player';
import { Box, FlexBox } from '../Box';
import { useIsMounted } from '../utils';

const ReactVideoPlayer = styled(ReactPlayer)(
css({
width: '100% !important',
height: '100% !important',
position: 'absolute',
top: 0,
left: 0,
border: 'none',
padding: 0,
'&:focus-visible': {
outlineOffset: '3px',
},
})
);
const ReactVideoPlayer = styled(ReactPlayer)`
width: 100% !important;
height: 100% !important;
border: 0;
padding: 0;
position: absolute;
top: 0;
left: 0;
& :focus-visible {
outline-offset: 3px;
}
`;

const OverlayPlayButton = ({ videoTitle }: { videoTitle?: string }) => {
return (
45 changes: 0 additions & 45 deletions packages/gamut/src/Video/styles/index.module.scss

This file was deleted.

Loading