Skip to content

Commit

Permalink
fix: added modal to tray component (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
GarthDB authored Jul 29, 2020
1 parent 9d3a305 commit 74a02f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/tray/metadata/tray.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ examples:
demoClassName: spectrum-CSSExample-example--overlay
markup: |
<div class="spectrum-Tray-wrapper spectrum-CSSExample-dialog">
<div class="spectrum-Tray is-open spectrum-Tray " style="max-height: calc(1149px - var(--spectrum-tray-margin-top));">
<div class="spectrum-Modal spectrum-Tray is-open spectrum-Tray " style="max-height: calc(1149px - var(--spectrum-tray-margin-top));">
<section class="spectrum-Dialog spectrum-Dialog--large" role="dialog" tabindex="-1" aria-modal="true">
<div class="spectrum-Dialog-grid">
<h1 class="spectrum-Dialog-heading spectrum-Dialog-heading--noHeader">New Messages</h1>
Expand Down
6 changes: 4 additions & 2 deletions components/tray/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@
"peerDependencies": {
"@spectrum-css/button": "^2.0.0",
"@spectrum-css/icon": "^2.0.0",
"@spectrum-css/vars": "^2.0.0"
"@spectrum-css/vars": "^2.0.0",
"@spectrum-css/modal": "^3.0.0-beta.0"
},
"devDependencies": {
"@spectrum-css/button": "^2.1.0",
"@spectrum-css/component-builder": "^1.1.0",
"@spectrum-css/icon": "^2.0.4",
"@spectrum-css/vars": "^2.1.0",
"@spectrum-css/modal": "^3.0.0-beta.0",
"gulp": "^4.0.0"
},
"publishConfig": {
"access": "public"
},
"homepage": "https://opensource.adobe.com/spectrum-css/"
}
}
3 changes: 0 additions & 3 deletions components/tray/skin.css
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
.spectrum-Tray {
background-color: var(--spectrum-tray-background-color);
}

0 comments on commit 74a02f0

Please sign in to comment.