Skip to content

Commit

Permalink
add margin for delete subform button
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamal Alabdullah authored and Jamal Alabdullah committed Nov 13, 2024
1 parent eb54377 commit 57f43c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.button {
margin: var(--fds-spacing-2);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useStudioEnvironmentParams } from 'app-shared/hooks/useStudioEnvironmen
import type { LayoutSets } from 'app-shared/types/api/LayoutSetsResponse';
import { useTranslation } from 'react-i18next';
import { SubformUtils } from './SubformUtils';
import classes from './DeleteSubformWrapper.module.css';

type DeleteSubformWrapperProps = {
layoutSets: LayoutSets;
Expand All @@ -30,6 +31,7 @@ export const DeleteSubformWrapper = ({

return (
<StudioDeleteButton
className={classes.button}
onDelete={onDeleteSubform}
// Delete is only supported for sub-forms, not regular layout-sets
variant='tertiary'
Expand Down

0 comments on commit 57f43c2

Please sign in to comment.