Skip to content

Commit

Permalink
feat(css): submit button active style
Browse files Browse the repository at this point in the history
  • Loading branch information
Me1e committed Aug 1, 2023
1 parent fe12f03 commit 595911e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
3 changes: 3 additions & 0 deletions packages/nextjs/components/Writer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ const FactButton = styled.div`
font-size: 12px;
font-weight: 600;
cursor: pointer;
&:active {
transform: scale(0.9);
}
`;
21 changes: 11 additions & 10 deletions packages/nextjs/pages/report/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,16 +264,9 @@ function CreateNFTWhenContractExist() {
<StyledMenuItem value={"collapse"}>Collapse</StyledMenuItem>
</Select>
</FormControl>
<Button
style={{
padding: "10px 0",
borderRadius: 30,
}}
variant="contained"
onClick={Write}
>
Report
</Button>
<SubmitButton variant="contained" onClick={Write}>
submit
</SubmitButton>
</form>
</StyledBox>
);
Expand Down Expand Up @@ -459,3 +452,11 @@ const LoadingTitle = styled("div")`
margin: 5px 0;
}
`;

const SubmitButton = styled(Button)`
padding: 10px 0;
border-radius: 30px;
&:active {
transform: scale(0.9);
}
`;

0 comments on commit 595911e

Please sign in to comment.