Skip to content

Commit

Permalink
fix: button background color and test
Browse files Browse the repository at this point in the history
  • Loading branch information
fitfab committed Aug 20, 2021
1 parent d0a52a2 commit fe9c9d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions src/carousel/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { cleanup } from '@testing-library/react'
// import { Carousel } from './index'
import React from 'react'
import { cleanup, render } from '@testing-library/react'
import { Button } from './partials'

afterEach(cleanup)

test('Render Carousel', () => {
console.log('TODO: Render Carousel test')
expect('todo').toBeTruthy()
const { container } = render(<Button>helloe</Button>)

expect(container.firstChild).toMatchSnapshot()
})
4 changes: 2 additions & 2 deletions src/carousel/partials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components'
import { CarouselProps } from './index'

export const Button = styled.button`
background: rgba(0, 0, 0, 0.2);
background: rgba(0, 0, 0, 0.4);
color: #fff;
cursor: pointer;
border: none;
Expand Down Expand Up @@ -41,7 +41,7 @@ export const Button = styled.button`
}
&:hover {
background: rgba(0, 0, 0, 0.6);
background: rgba(0, 0, 0, 0.7);
}
`
export const CarouselView = styled.div<CarouselProps>`
Expand Down

0 comments on commit fe9c9d9

Please sign in to comment.