USWDS - Modal: Create modal component#3981
Merged
thisisdano merged 95 commits intouswds-2.11.0from Mar 11, 2021
Merged
Conversation
mejiaj
reviewed
Mar 9, 2021
| padding: units(1) units(4) units(4); | ||
| } | ||
|
|
||
| .usa-modal__header { |
Contributor
There was a problem hiding this comment.
Is the intention that usa-modal__heading live inside here or is this separate?
Contributor
There was a problem hiding this comment.
The way we usually use this is that a header is a section and a heading is an h-level element. We currently have a heading, but it looks like the header is not yet implemented. I'm going to remove this code
mejiaj
reviewed
Mar 10, 2021
src/components/test/kitchen-sink.njk
Outdated
|
|
||
| {% block body %} | ||
|
|
||
| {% render '@modal' %} |
Contributor
There was a problem hiding this comment.
Let's remove this once we finalize this component.
Contributor
There was a problem hiding this comment.
I didn't remove it, rather just moved it to a more conventional location. It'll be useful to keep it there I think.
- remove unused header code - remove shadow - add typeset - remove z-index from settings
thisisdano
approved these changes
Mar 11, 2021
This file contains hidden or 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
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
This will add an accessible modal window to the design system
Issue: #3936
Screenshots
Default size

Large size

Additional features
navigation.jsto fix content shifting when mobile navigation is opened.focus-trap.jsto trap focus if focus is set to a window, instead of content within the windowAccessibility features:
force-actiondata attributeBefore you hit Submit, make sure you’ve done whichever of these applies to you:
npm testand make sure the tests for the files you have changed have passed.Other to-do's:
Testing conducted: