Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

feat(menu): Adds new menu, menu-surface. #3311

Merged
merged 21 commits into from
Aug 13, 2018
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
433d18d
chore(text-field): Add screenshot tests
williamernest Aug 1, 2018
c30dae5
chore: update travis to run tests on feat/menu-2 branch (#2852)
lynnmercier Jun 1, 2018
a967f70
feat(menu-surface): Add new component (#2994)
williamernest Jul 9, 2018
a2b06c1
feat(menu-surface): Change anchor element (#3067)
williamernest Jul 17, 2018
40d09a8
feat(menu-surface): Emit an event after the menu is opened (#3197)
williamernest Jul 24, 2018
b44ca8f
feat(menu-surface): Add ability to position a menu-surface by x/y (#3…
williamernest Aug 1, 2018
067d3f9
Revert "chore(text-field): Add screenshot tests"
williamernest Aug 1, 2018
d55bdc5
feat(menu): Add new menu (#3221)
williamernest Aug 7, 2018
01e071a
Update .travis.yml
williamernest Aug 7, 2018
3f45dd1
feat(menu-surface): Update for comments
williamernest Aug 8, 2018
522a8a8
feat(menu): Add body position:relative back to demo
williamernest Aug 9, 2018
6d6ccd9
feat(menu): Remove outdated comment
williamernest Aug 9, 2018
cce8540
feat(menu): Update for comments
williamernest Aug 9, 2018
6abffd4
feat(menu): Update for comments. Add tests.
williamernest Aug 10, 2018
99fa8f9
Merge branch 'master' into feat/menu-2
williamernest Aug 10, 2018
08a9ccc
Update mdc-menu-surface.test.js
williamernest Aug 10, 2018
5202b7c
feat(menu): Update for comments
williamernest Aug 13, 2018
c9d198f
feat(menu): Add test
williamernest Aug 13, 2018
87260ed
Merge branch 'master' into feat/menu-2
williamernest Aug 13, 2018
70f7525
Merge branch 'master' into feat/menu-2
williamernest Aug 13, 2018
92ec26b
feat(menu): Update dependencies
williamernest Aug 13, 2018
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
9 changes: 9 additions & 0 deletions demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@
</span>
</a>


<a href="menu-surface.html" role="listitem" class="mdc-list-item">
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="/images/ic_menu_24px.svg" /></span>
<span class="mdc-list-item__text">
Menu Surface
<span class="mdc-list-item__secondary-text">Pop over menu surfaces</span>
</span>
</a>

<a href="radio.html" role="listitem" class="mdc-list-item">
<span class="demo-catalog-list-icon mdc-list-item__graphic"><img src="/images/ic_radio_button_24px.svg" /></span>
<span class="mdc-list-item__text">
Expand Down
374 changes: 374 additions & 0 deletions demos/menu-surface.html

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions demos/menu-surface.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
//
// Copyright 2018 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

@import "./common";
@import "../packages/mdc-button/mdc-button";
@import "../packages/mdc-icon-button/mdc-icon-button";
@import "../packages/mdc-list/mdc-list";
@import "../packages/mdc-menu-surface/mdc-menu-surface";
@import "../packages/mdc-image-list/mdc-image-list";

body {
position: relative;
}

.hero .mdc-menu-surface {
position: static; // Required for proper IE11 alignment.
z-index: auto;
}

.demo-content {
position: relative;
top: 64px;
}

.demo-controls-container {
width: 100%;
height: calc(100vh - 80px);
}

.demo-controls {
width: 500px;
margin-right: auto;
margin-left: auto;
}

.mdc-menu-surface--anchor {
position: absolute;
margin: 16px;
}

.margin-inputs input {
width: 2em;
}

.left-column-controls {
display: inline-block;
vertical-align: top;
}

.right-column-controls {
display: inline-block;
margin-left: 2em;
vertical-align: top;
}

.demo-button__normal-text,
.demo-button__long-text {
display: none;
}

.demo-button--normal .demo-button__normal-text,
.demo-button--long .demo-button__normal-text,
.demo-button--long .demo-button__long-text {
display: inline;
}

.standard-image-list {
@include mdc-image-list-aspect(1.5); // Images are 3:2
@include mdc-image-list-standard-columns(1);

width: 200px;
}

Loading