-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat(web,a11y): standardize the FullScreenModal UI #8566
Merged
jrasm91
merged 11 commits into
immich-app:main
from
ben-basten:feat/standard-modal-header-v2
Apr 8, 2024
Merged
feat(web,a11y): standardize the FullScreenModal UI #8566
jrasm91
merged 11 commits into
immich-app:main
from
ben-basten:feat/standard-modal-header-v2
Apr 8, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* consistent header, padding, close button, and radius as BaseModal * vertically stacking ConfirmDialogue CTA buttons in narrow screens * adding aria-modal tags for screen reader * add viewport-specific height limits on modals, to enable scrolling * prevent focus from being hidden under sticky content in modals * standardize FullScreenModal widths using a Prop
…/standard-modal-header-v2
Working on fixing the merge conflicts... |
…/standard-modal-header-v2 conflicts: * slideshow-settings.svelte * album-options.svelte * create-user-form.svelte * map-settings-modal.svelte
Fixed the alignment and button wrapping! There are numerous more modals with this issue - I've ran through and fixed those too. |
…/standard-modal-header-v2
…/standard-modal-header-v2
jrasm91
approved these changes
Apr 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Follow up to #8388, #8469.
Standardized
FullScreenModal
, using the same style as theBaseModal
:wide
: 750pxnarrow
: 450pxauto
: fits the width of the modal content, up to a maximum of 550pxOther improvements:
Improved accessibility:
aria-modal
andaria-labelledby
, so the screen reader now announces the header when the modal is openedBaseModal
, which prevents focus from being hidden behind the sticky bottom footerScreenshots
Create user
Before
After - light
After - dark
Edit user
Before
After - light
After - dark
Confirmation modal
Desktop - dark
Desktop - light
Mobile - light
Set date of birth
Mobile
Note! Modals with CTA buttons that aren't using the
ConfirmationDialogue
component do not vertically stack the CTA buttons, and can cause horizontal scrolling in some cases.Desktop - dark
Desktop - light
Change location
Dark
Light
Mobile
Keyboard shortcuts
Desktop
Mobile
Select avatar color
Desktop
Mobile
How Has This Been Tested?
Tested using MacOS+VoiceOver+Firefox.
Checklist: