Skip to content

Commit

Permalink
[new-suggestions] - Fix behavior after introducing styled-components
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiLeme committed Sep 13, 2024
1 parent 321753b commit 0548cf2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/modal-to-share-link/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export function ModalToShareLink(props: ModalToShareLinkProps) {
</div>
</Styled.FormToSendUrlItem>
)}
<Styled.SendingButton type="submit">Share as content</Styled.SendingButton>
<Styled.SendingButton type="submit" value="Share as content" />
</Styled.FormToSendUrl>
</>
) : (
Expand Down
21 changes: 18 additions & 3 deletions src/components/modal-to-share-link/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,23 @@ export const WarningIframeMessage = styled.p`
font-style: italic;
`;

export const SendingButton = styled(ButtonStyle)`
export const SendingButton = styled.input`
border: 3px solid transparent;
overflow: visible;
display: inline-block;
border-radius: 2px;
font-weight: 600;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
user-select: none;
padding: 8px 15px;
&:hover {
border: 3px solid #0f70d7;
}
padding: 0.45rem 1rem;
background-color: #0f70d7;
color: #fff;
Expand All @@ -136,7 +152,7 @@ export const CurrentSlideTextContainer = styled.div`
margin-bottom: 10px;
`;

export const FormToSendUrl = styled.div`
export const FormToSendUrl = styled.form`
margin-left: 20px;
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -204,7 +220,6 @@ export const ErrorSpan = styled.span`
`;

export const ErrorContentBlock = styled.div`
margin-left: 40px;
display: flex;
flex-direction: column;
align-items: flex-start;
Expand Down

0 comments on commit 0548cf2

Please sign in to comment.