Created
April 5, 2021 20:41
-
-
Save diiegoburiti/0d85b06007d64abc0e7a93378d6049e6 to your computer and use it in GitHub Desktop.
Button test with react-testing-library and jest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled from 'styled-components' | |
export const Wrapper = styled.button` | |
background-color: #000; | |
color: #fff; | |
font-size: 1.1rem; | |
padding: 2rem; | |
border: none; | |
border-radius: 1rem; | |
opacity: 1; | |
&:disabled { | |
cursor: not-allowed; | |
filter: saturate(40%); | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this! 💙
It worked 08/23