-
Notifications
You must be signed in to change notification settings - Fork 11
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
782 give every modal a header with title and close button #829
782 give every modal a header with title and close button #829
Conversation
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.
I've not done a proper review yet, but I noticed that on the handbook the header is overlapping the top of the scroll bar:
Then I realised how the handbook header was structured:
- The
overlay-header
div sits at the top withposition:fixed
while thehandbook-overlay
div sits tucked underneath, and it's up to some clever margins to nudge the content and spine down a bit below the header.
And while this looks grand if you get the margins just so, It seems vulnerable to visual bugs down the line.
Ideally we'd have the overlay-header
actually take up space in the div, and have the spine and content fill up the remaining space. I had a go at that in this separate branch (You can click compare and pull request to see the changes). It would require some more css fiddling to get the other modals looking good again though, since they all depend on the overlay-header having position:fixed
.
Visual changes look cracking by the way! Should've led with that 😅 |
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.
Excellent work, looks amazing ❤️
Just a handful of minor suggestions.
@pmarsh-scottlogic Chris did some css magic, the issue with the scrollbar and margins should be fixed and future-proofed now. |
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.
Lovely ❤️
Description
Every Modal now has a heading and a close button with the text "close" and an x icon.
Screenshots
Notes
Concerns
I didn't understandthat seemed unnecessary, so would be great to double check that I didn't remove anything important.Checklist
Have you done the following?