-
Notifications
You must be signed in to change notification settings - Fork 72
[terra-popup] Enabled close button in Popup #2158
Conversation
}; | ||
|
||
const defaultProps = { | ||
classNameInner: null, | ||
contentHeightMax: -1, | ||
contentWidthMax: -1, | ||
isFocusedDisabled: false, | ||
isHeaderDisabled: false, | ||
isHeaderDisabled: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default value should be false only. Since prop name is isHeaderDisabled it should remove the header when true but as per your implementation it will add header when true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it to false
}; | ||
|
||
const defaultProps = { | ||
isPopupHeaderDisabled: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Header is getting added when isPopupHeaderDisabled is true it should be the other way. Header should be added when prop is false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this prop since Popup by default provides the header with close button
Summary
What was changed:
Why it was changed:
Should be able to focus close button to close the popup
Testing
This change was tested using:
Reviews
In addition to engineering reviews, this PR needs:
Additional Details
This PR resolves:
UXPLATFORM-10398
Thank you for contributing to Terra.
@cerner/terra