Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-4091] Linked Projects Modal Close Button #2018

Merged

Conversation

chth0n1x
Copy link
Contributor

@chth0n1x chth0n1x commented Oct 6, 2023

Purpose

The purpose of these changes is to make the header 'x' close button and the footer 'Close' button both display on the OsfDialog modal when turning mobile view horizontally.

Summary of Changes

  • Max height on the modal 'Main' local class was updated
  • Max height on the modal 'Dialog' local class was updated

Screenshot(s)

image

Side Effects

There should be no side effects from these changes.

QA Notes

-Does the modal properly display in mobile view when rotated horizontally?
-Does the modal still display properly in desktop and tablet view?
-Are you able to click both the 'x' close and the 'Close' button within the modal when rotated?
-Are there any views that have been otherwise affected by these changes?

@coveralls
Copy link

coveralls commented Oct 6, 2023

Pull Request Test Coverage Report for Build 6482853446

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 71.232%

Totals Coverage Status
Change from base Build 6475148433: 0.0%
Covered Lines: 5943
Relevant Lines: 8129

💛 - Coveralls

Copy link
Contributor

@adlius adlius left a comment

Choose a reason for hiding this comment

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

Were you able to replicate the problem in the ticket? I can't seem to replicate the same issue as described in the ticket. However it seems that the dialog header is not visible in horizontal mode. If this is the problem that you're trying to fix, I think special-casing for smaller screen sizes is perhaps not the way to go, especially when the problem persists for wider screens of similar heights.

@chth0n1x
Copy link
Contributor Author

chth0n1x commented Oct 9, 2023

Were you able to replicate the problem in the ticket? I can't seem to replicate the same issue as described in the ticket. However it seems that the dialog header is not visible in horizontal mode. If this is the problem that you're trying to fix, I think special-casing for smaller screen sizes is perhaps not the way to go, especially when the problem persists for wider screens of similar heights.

Hi @adlius, the max-height has been adjusted to accommodate the screen size. I am not sure what code you looked at, but it had not been placed in review. Please take a look now that the PR is ready and let me know if you have any questions.

@chth0n1x
Copy link
Contributor Author

chth0n1x commented Oct 9, 2023

Were you able to replicate the problem in the ticket? I can't seem to replicate the same issue as described in the ticket. However it seems that the dialog header is not visible in horizontal mode. If this is the problem that you're trying to fix, I think special-casing for smaller screen sizes is perhaps not the way to go, especially when the problem persists for wider screens of similar heights.

Yes, the changes were originally for mobile devices. Following our conversation, consideration for the navbar and the fact that it overlaps the modal upon open as well as does not provide functionality when displayed now have resulted in changes to account for all screen sizes including mobile where the z-index has been raised from 900 to 1100.

@brianjgeiger brianjgeiger merged commit 0ef5157 into CenterForOpenScience:develop Oct 11, 2023
9 checks passed
@chth0n1x chth0n1x deleted the linked-projects-modal-close branch October 20, 2023 09:40
@futa-ikeda futa-ikeda added this to the 23.13.0 milestone Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants