-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Designer wants to hide additional buttons in edit mode
- Loading branch information
Erik Versteeg
committed
Nov 26, 2021
1 parent
20b2130
commit 0f266f9
Showing
4 changed files
with
66 additions
and
87 deletions.
There are no files selected for viewing
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
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
18 changes: 13 additions & 5 deletions
18
src/app/components/organisms/EditablePanel/EditablePanel.sc.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
import styled from 'styled-components'; | ||
import styled, { css, SimpleInterpolation } from 'styled-components'; | ||
|
||
export const ButtonWrapper = styled.div` | ||
button:nth-of-type(1) { | ||
margin: 0 8px 0 0; | ||
} | ||
export interface ButtonWrapperProps { | ||
hasMargin: boolean; | ||
} | ||
|
||
export const ButtonWrapper = styled.div<ButtonWrapperProps>` | ||
${({ hasMargin }): SimpleInterpolation => | ||
hasMargin && | ||
css` | ||
button:nth-of-type(1) { | ||
margin: 0 8px 0 0; | ||
} | ||
`} | ||
`; | ||
|
||
export default ButtonWrapper; |
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