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

[terra-popup] Enabled close button in Popup #2158

Merged
merged 40 commits into from
May 20, 2024
Merged

[terra-popup] Enabled close button in Popup #2158

merged 40 commits into from
May 20, 2024

Conversation

adavijit
Copy link
Collaborator

@adavijit adavijit commented May 8, 2024

Summary

What was changed:

  • Enabled close button for popup
  • Modified tests for the close button

Why it was changed:
Should be able to focus close button to close the popup

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

This PR resolves:

UXPLATFORM-10398


Thank you for contributing to Terra.
@cerner/terra

};

const defaultProps = {
classNameInner: null,
contentHeightMax: -1,
contentWidthMax: -1,
isFocusedDisabled: false,
isHeaderDisabled: false,
isHeaderDisabled: true,
Copy link
Contributor

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

Copy link
Collaborator Author

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,
Copy link
Contributor

@saket2403 saket2403 May 17, 2024

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.

Copy link
Collaborator Author

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

@adavijit adavijit requested a review from saket2403 May 17, 2024 12:07
@adavijit adavijit changed the title [terra-popup] Enabled close button for examples [terra-popup] Enabled close button in Popup May 17, 2024
@adavijit adavijit self-assigned this May 19, 2024
@github-actions github-actions bot temporarily deployed to preview-pr-2158 May 20, 2024 05:11 Destroyed
@sugan2416 sugan2416 merged commit 31b5c47 into main May 20, 2024
22 checks passed
@sugan2416 sugan2416 deleted the UXPLATFORM-10398 branch May 20, 2024 05:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants