Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed popup issue when automatic height/width
Browse files Browse the repository at this point in the history
Avijit Das committed May 15, 2024
1 parent dc4763a commit cb7677e
Showing 79 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/terra-popup/src/Popup.jsx
Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@ const propTypes = {
*/
onClick: PropTypes.func,
/**
* To determine if the popup is opening from the menu.
* To determine if menu is opened inside the popup.
*/
isMenu: PropTypes.bool,
};
4 changes: 2 additions & 2 deletions packages/terra-popup/src/_PopupContent.jsx
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ const propTypes = {
*/
refCallback: PropTypes.func,
/**
* To determine if the popup is opening from the menu.
* To determine if menu is opened inside the popup
*/
isMenu: PropTypes.bool,
};
@@ -118,7 +118,7 @@ class PopupContent extends React.Component {
</FormattedMessage>
</div>
);
return <ContentContainer header={header} fill>{children}</ContentContainer>;
return <ContentContainer header={header}>{children}</ContentContainer>;
}

static isBounded(value, maxValue) {
Original file line number Diff line number Diff line change
@@ -139,7 +139,7 @@ exports[`correctly applies the theme context className 1`] = `
style="height: 80px; width: 240px;"
>
<div
class="content-container-fill"
class="content-container-static"
>
<div
class="header"
@@ -276,7 +276,7 @@ exports[`correctly applies the theme context className 1`] = `
}
>
<ContentContainer
fill={true}
fill={false}
header={
<div
className="header"
@@ -292,7 +292,7 @@ exports[`correctly applies the theme context className 1`] = `
setFocusOnContainer={false}
>
<div
className="content-container-fill"
className="content-container-static"
>
<div
className="header"
Original file line number Diff line number Diff line change
@@ -118,7 +118,7 @@ exports[`PopupContent Prop Tests with default props correctly applies the theme
}
>
<ContentContainer
fill={true}
fill={false}
header={
<div
className="header"
@@ -134,7 +134,7 @@ exports[`PopupContent Prop Tests with default props correctly applies the theme
setFocusOnContainer={false}
>
<div
className="content-container-fill"
className="content-container-static"
>
<div
className="header"
@@ -293,7 +293,7 @@ exports[`PopupContent Prop Tests with default props matches the snapshot 1`] = `
}
>
<ContentContainer
fill={true}
fill={false}
header={
<div
className="header"
@@ -377,7 +377,7 @@ exports[`PopupContent Prop Tests with header matches the mount snapshot 1`] = `
style="height: 640px; width: 640px;"
>
<div
class="content-container-fill"
class="content-container-static"
>
<div
class="header"
@@ -502,7 +502,7 @@ exports[`PopupContent Prop Tests with header matches the mount snapshot 1`] = `
style="height: 640px; width: 640px;"
>
<div
class="content-container-fill"
class="content-container-static"
>
<div
class="header"
@@ -618,7 +618,7 @@ exports[`PopupContent Prop Tests with header matches the mount snapshot 1`] = `
style="height: 640px; width: 640px;"
>
<div
class="content-container-fill"
class="content-container-static"
>
<div
class="header"
@@ -719,7 +719,7 @@ exports[`PopupContent Prop Tests with header matches the mount snapshot 1`] = `
}
>
<ContentContainer
fill={true}
fill={false}
header={
<div
className="header"
@@ -735,7 +735,7 @@ exports[`PopupContent Prop Tests with header matches the mount snapshot 1`] = `
setFocusOnContainer={false}
>
<div
className="content-container-fill"
className="content-container-static"
>
<div
className="header"
@@ -894,7 +894,7 @@ exports[`PopupContent Prop Tests with header matches the shallow snapshot 1`] =
}
>
<ContentContainer
fill={true}
fill={false}
header={
<div
className="header"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cb7677e

Please sign in to comment.