Skip to content

Commit

Permalink
Chore: wrapping applying & cancel buttons together and fixing font fa…
Browse files Browse the repository at this point in the history
…mily select of the text
  • Loading branch information
AhmeeedMostafa committed Dec 22, 2020
1 parent a16b880 commit d9981f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion projects/react/components/CustomizedCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ export default class CustomizedCanvas extends Component {
updatedData.text = updates.selectedShape.text = updatedData.text || targetShape.text;
}
} else {
const newData = {}
const newData = { ...updatedData }

if (typeof updatedData.x !== 'undefined' && typeof updatedData.y !== 'undefined') {
newData.x = updatedData.x;
Expand Down
2 changes: 1 addition & 1 deletion projects/react/styledComponents/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ const Button = styled.button`
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border: 1px solid transparent;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
border-radius: ${props => getElementStylesBySize(props, 'button', 'br')};
border: 0;
&:focus, &:hover {
text-decoration: none;
Expand Down
12 changes: 4 additions & 8 deletions projects/react/styledComponents/Crop.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ const FieldInput = styled.input.attrs(props => ({
color: ${p => p.theme.colors.text};
background: ${props => props.dark ? props.theme.colors.primaryBg : props.theme.colors.secondaryBg};
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px inset, rgba(82, 104, 109, 0.4) 0px 1px 0px;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out;
vertical-align: middle;
font-family: Roboto, sans-serif;
border: 1px solid ${props => props.theme.colors.border};
Expand All @@ -74,7 +73,6 @@ const FieldInput = styled.input.attrs(props => ({
&:focus {
outline: none;
box-shadow: rgba(0, 112, 124, 0.5) 0px 1px 1px inset, rgba(0, 112, 124, 0.4) 0px 1px 0px;
}
`;

Expand All @@ -88,22 +86,20 @@ const FileInput = styled('input').attrs(props => ({
font-size: 12px;
line-height: 1;
color: ${p => p.theme.colors.text};
background: ${props => props.dark ? props.theme.colors.primaryBg : props.theme.colors.secondaryBgHover};
border-radius: 3px;
box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 1px inset, rgba(82, 104, 109, 0.4) 0px 1px 0px;
background: ${props => props.dark ? props.theme.colors.primaryBg : props.theme.colors.secondaryBg};
border-radius: 2px;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
vertical-align: middle;
border: 0px solid transparent;
font-family: Roboto, sans-serif;
border: 1px solid ${props => props.theme.colors.border};
&:hover {
outline: none;
}
&:focus {
border: 1px solid ${props => props.theme.colors.secondaryBg};
outline: none;
box-shadow: rgba(0, 112, 124, 0.5) 0px 1px 1px inset, rgba(0, 112, 124, 0.4) 0px 1px 0px;
}
`;

Expand Down
1 change: 1 addition & 0 deletions projects/react/styledComponents/Header.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const CancelBtn = styled(Button)`
min-width: 62px;
height: 30px;
margin-right: 8px;
border: 0;
&:hover {
background: ${props => getHoverColor(props.theme.colors.primaryBg)};
Expand Down

0 comments on commit d9981f2

Please sign in to comment.