diff --git a/packages/react/cypress/component/LazyVideo.cy.tsx b/packages/react/cypress/component/LazyVideo.cy.tsx index bed0252..d7b5dc5 100644 --- a/packages/react/cypress/component/LazyVideo.cy.tsx +++ b/packages/react/cypress/component/LazyVideo.cy.tsx @@ -107,4 +107,16 @@ describe('Accessibility controls', () => { cy.get("button").should('not.exist') }) + it('can have custom icons', () => { + cy.mount( + Play} + pauseIcon={() => Pause} + /> + ); + cy.get('button').contains('Pause') + }) + }) diff --git a/packages/react/src/LazyVideo/AccessibilityControls.tsx b/packages/react/src/LazyVideo/AccessibilityControls.tsx index 8cb3d04..ff5966d 100644 --- a/packages/react/src/LazyVideo/AccessibilityControls.tsx +++ b/packages/react/src/LazyVideo/AccessibilityControls.tsx @@ -12,10 +12,6 @@ const minAccessibleBtnSize = 24 // How far from the edge to position the button const positionGutter = '1em' -// How transparent to make the button background -// https://chatgpt.com/share/1050ddc4-5d2f-4a50-a5f6-623b7b679184 -const backgroundOpacity = 0.25 - type AccessibilityControlsProps = Pick