-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: panel group container * feat: enable custom icon * feat: dynamicly take full width based on baseComponentId prop * fix test * Eslint fixes * feat: possible to add group reference * Merge * chore: remove log statements * chore: remove debug statement * feat: possible to reference group without supplying children * test: test for opening and closing panel * bug: not possible to delte empy index group * chore: fix double to single quotes ofter merge trouble * refactor: RORO for util function * test: cypress test for complex case * test: remove it.only + unneccessary check * chore: formatting * lint * refactor: code smell * test: fix broken test * chore: remove comment * cypress: specific selector * Update test/cypress/e2e/integration/app-frontend/group.js Co-authored-by: Håkon <[email protected]> * Update src/altinn-app-frontend/src/features/form/containers/PanelGroupContainer.test.tsx Co-authored-by: Håkon <[email protected]> * chore: remove unnessecary eslint ignore line * refactor: init userEvent * test: use of within query * feat: set custom icon size from returned value Co-authored-by: EKEBERG Steffen <[email protected]> Co-authored-by: Ole Martin Handeland <[email protected]> Co-authored-by: Håkon <[email protected]>
- Loading branch information
1 parent
3d88c9f
commit 19802d0
Showing
27 changed files
with
1,072 additions
and
175 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
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
32 changes: 32 additions & 0 deletions
32
src/altinn-app-frontend/src/features/form/components/FullWidthGroupWrapper.tsx
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { makeStyles } from '@material-ui/core'; | ||
import React from 'react'; | ||
|
||
export interface IFulLWidthGroupWrapperProps { | ||
children?: React.ReactNode; | ||
} | ||
|
||
const useStyles = makeStyles({ | ||
fullWidthGroupWrapper: { | ||
marginLeft: '-24px', | ||
marginRight: '-24px', | ||
'@media (min-width:993px)': { | ||
marginLeft: '-36px', | ||
marginRight: '-36px', | ||
}, | ||
}, | ||
}); | ||
|
||
export function FullWidthGroupWrapper({ | ||
children, | ||
}: IFulLWidthGroupWrapperProps) { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<div | ||
className={classes.fullWidthGroupWrapper} | ||
data-testid='fullWidthGroupWrapper' | ||
> | ||
{children} | ||
</div> | ||
); | ||
} |
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
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
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
Oops, something went wrong.