Skip to content

Commit

Permalink
Set marginBottom 0 on h3 and the last element of the alert content
Browse files Browse the repository at this point in the history
  • Loading branch information
magnurh-cx committed Jun 8, 2024
1 parent 25aeb08 commit 6777e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Alert extends BaseComponent {
fullWidth={false} // Removes border-radius if true
size="medium"
>
<InnerHtml content={this.getContent()} />
<InnerHtml content={this.getContent()} className={'alertContent'} />
</NavAlert>
</div>,
);
Expand Down
3 changes: 3 additions & 0 deletions packages/shared-components/src/styles/form/alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const alert = {
},
'& .formio-component-alertstripe': {
marginBottom: 'var(--a-spacing-10)',
'& .alertContent h3, :last-child': {
marginBottom: 0,
},
},
'& .formio-component-alertstripe:last-child': {
marginBottom: '0',
Expand Down

0 comments on commit 6777e66

Please sign in to comment.