Skip to content

fix(menu): align appearance with spec - #5361

Merged
jelbourn merged 1 commit into
angular:masterfrom
crisbeto:3814/menu-animation
Jul 14, 2017
Merged

jelbourn merged 1 commit into
angular:masterfrom
crisbeto:3814/menu-animation

Conversation

@crisbeto

@crisbeto crisbeto commented Jun 25, 2017 •

Copy link
Copy Markdown
Member

Aligns the menu panel appearance with the spec by:

  • Reducing the elevation from 8 to 2.
  • Adding a slight border radius.
  • Tweaking the animation to match the examples.

Relates to #3814.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 25, 2017

@kara kara left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Animation looks great; just nits. Apply label when ready.

Comment thread src/lib/menu/menu-directive.ts Outdated
}

/**
* Resets the panel animation ot its initial state.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: ot -> to

Comment thread src/lib/menu/menu-directive.ts Outdated
}

/**
* Starts the enter animation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting nit: Convert these short comments to one line? Same for the others.

/** Starts the enter animation */

Comment thread src/lib/menu/menu.scss

.mat-menu-panel {
@include mat-menu-base();
@include mat-menu-base(2);

@kara kara Jun 26, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment clarifying where this elevation number comes from? I couldn't find any guidance in the spec.

@crisbeto crisbeto Jun 26, 2017 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nowhere in the spec, this one looked closest to the designs.

@kara kara assigned crisbeto and unassigned kara Jun 26, 2017
@crisbeto
crisbeto force-pushed the 3814/menu-animation branch from 2ca658d to d991d7b Compare June 26, 2017 19:13
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jun 26, 2017
Aligns the menu panel appearance with [the spec](https://material.io/guidelines/components/menus.html) by:
* Reducing the elevation from 8 to 3.
* Adding a slight border radius.
* Tweaking the animation to match the examples.

Relates to angular#3814.
@crisbeto
crisbeto force-pushed the 3814/menu-animation branch from d991d7b to 4757d2d Compare July 1, 2017 13:30
@mmalerba mmalerba added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Jul 7, 2017
@mmalerba

mmalerba commented Jul 7, 2017

Copy link
Copy Markdown
Contributor

caretaker note: screenshot diffs need approval

@kara kara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants