Skip to content

Commit

Permalink
chore(Modal): remove deprecated class prop (#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed May 31, 2023
1 parent aca4630 commit 4af9960
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 1 addition & 3 deletions packages/dnb-eufemia/src/components/dialog/DialogContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default function DialogContent({
headerContent = null,
alignContent = null,
className = null,
class: _className = null,
preventCoreStyle = null,
spacing = true,
fullscreen,
Expand Down Expand Up @@ -75,8 +74,7 @@ export default function DialogContent({
isTrue(context?.hide) && `dnb-dialog--hide`,
isTrue(noAnimation) && `dnb-dialog--no-animation`,
isTrue(noAnimationOnMobile) && `dnb-dialog--no-animation-on-mobile`,
className,
_className
className
),
style: (minWidth || maxWidth) && { minWidth, maxWidth },
onClick: context?.preventClick,
Expand Down
5 changes: 0 additions & 5 deletions packages/dnb-eufemia/src/components/dialog/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ export interface DialogContentProps
*/
className?: string

/**
* @deprecated Please use `className`.
*/
class?: string

/**
* If set to `false` then the dialog content will be shown without any spacing. Defaults to `true`.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export const DrawerSandbox = () => (
// max_width="40vw"
// overlay_class="overlay_class"
// content_class="content_class"
// class="inner_class"
// className="inner_class"
// header_content={
// <>
// <P bottom>This is a lorem ipsum dolor</P>
Expand Down

0 comments on commit 4af9960

Please sign in to comment.