Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions jekyll/_components/doorhangers.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ Doorhangers provide a way to present decisions to users which is less intrusive
Doorhangers are used for prompt and notification; they are used for full featured UI; or they are used for list and menu as in the example on the left.
</div>

<div class="grid-2" markdown="1">
![Doorhangers as menu overflow containers](../images/components/doorhangers/doorhanger-overflow.png)

<div markdown="1">
A doorhanger should be used to provide access to overflowing menu items as seen in the DevTools main toolbar.
</div>
</div>


## Structure

### Directional Arrow
Expand Down Expand Up @@ -87,6 +96,22 @@ Maximum Width: `320px`
</div>
</div>

### Dark mode

<div class="grid-2" markdown="1">
![Doorhanger appearance in dark mode](../images/components/doorhangers/doorhanger-darkmode.png)

<div markdown="1">
Occurrences of the doorhanger component in DevTools should adapt to the users' selected theme.

Background: Grey 60 `#4a4a4f`

Text: Grey 10 `#f9f9fa`

Background Hover: `rgba(249,249,250,.1)` *Photon color needed*
</div>
</div>

## Behavior

Clicking outside of the active area dismiss doorhangers.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.