Skip to content

Commit

Permalink
Fixes to NotificationFullscreen component (#1231)
Browse files Browse the repository at this point in the history
* Remove outer spacing and update body prop

* add changeset

* Update changeset

Co-authored-by: Connor Bär <connor-baer@users.noreply.github.com>

Co-authored-by: Connor Bär <connor-baer@users.noreply.github.com>
  • Loading branch information
amelako and connor-baer authored Oct 25, 2021
1 parent 366bf99 commit c9ec516
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-rules-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/circuit-ui': patch
---

Updated the NotificationFullscreen `body` prop to accept a `ReactNode` and removed the external spacing.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

import { HTMLAttributes } from 'react';
import { HTMLAttributes, ReactNode } from 'react';
import { css } from '@emotion/react';

import Body from '../Body';
Expand Down Expand Up @@ -43,7 +43,7 @@ export interface NotificationFullscreenProps
/**
* An optional body copy.
*/
body?: string;
body?: string | ReactNode;
/**
* An optional action prop to allow users to follow up on the content.
*/
Expand All @@ -52,7 +52,6 @@ export interface NotificationFullscreenProps

const wrapperStyles = css`
max-width: 420px;
margin: 0 40px;
display: flex;
flex-direction: column;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ exports[`NotificationFullscreen styles should render with default styles 1`] = `
.circuit-0 {
max-width: 420px;
margin: 0 40px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
Expand Down Expand Up @@ -440,7 +439,6 @@ exports[`NotificationFullscreen styles should render with default styles with h1
.circuit-0 {
max-width: 420px;
margin: 0 40px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
Expand Down

1 comment on commit c9ec516

@vercel
Copy link

@vercel vercel bot commented on c9ec516 Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.