Skip to content

Commit

Permalink
fix: fixed save-button position when share is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Georgiev committed Dec 5, 2019
1 parent 5d58e54 commit 9b93f40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Expand Up @@ -187,6 +187,7 @@ exports[`save and share bar component save and share bar renders correctly when
"alignItems": "center",
"flexDirection": "row",
"height": "40px",
"marginLeft": "auto",
"msFlexAlign": "center",
"msFlexDirection": "row",
}
Expand Down
2 changes: 1 addition & 1 deletion packages/save-and-share-bar/src/save-and-share-bar.js
Expand Up @@ -105,7 +105,7 @@ class SaveAndShareBar extends Component {
)}
{savingEnabled ? (
<UserState state={UserState.loggedIn} serverRender={false}>
<View style={styles.rowItem} data-testid="save-star">
<View style={styles.rowItemRight} data-testid="save-star">
<SaveStar
colour={styles.svgIcon.save.strokeColour}
hoverColor={styles.svgIcon.hoverFillColour}
Expand Down
8 changes: 7 additions & 1 deletion packages/save-and-share-bar/src/styles/index.js
Expand Up @@ -31,7 +31,7 @@ const styles = {
margin-left: ${spacing(1)};
cursor: pointer;
border-radius: ${ICON_SIZE}px;
&, > * {
display: flex;
align-items: center;
Expand All @@ -53,6 +53,12 @@ const styles = {
flexDirection: "row",
height: ICON_SIZE
},
rowItemRight: {
alignItems: "center",
flexDirection: "row",
height: ICON_SIZE,
marginLeft: "auto"
},
svgIcon: {
fb: {
height: 18
Expand Down

0 comments on commit 9b93f40

Please sign in to comment.