Skip to content

Commit

Permalink
docs(menu): Remove obsolete mdc-simple-menu--open-from classes. (#1927
Browse files Browse the repository at this point in the history
)
  • Loading branch information
simono authored and lynnmercier committed Jan 17, 2018
1 parent 6078784 commit 815eade
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 1 addition & 9 deletions packages/mdc-menu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,7 @@ The menu is `position: absolute` by default, and must be positioned by the user

The menu will open from the top left by default (top right in RTL). Depending on how you've positioned your button, you
may want to change the point it opens from.
To override the opening point, you can style `transform-origin` directly, or use one of the following convenience
classes:

| class name | description |
| ----------------------------------------- | ------------------------------------ |
| `mdc-simple-menu--open-from-top-left` | Open the menu from the top left. |
| `mdc-simple-menu--open-from-top-right` | Open the menu from the top right. |
| `mdc-simple-menu--open-from-bottom-left` | Open the menu from the bottom left. |
| `mdc-simple-menu--open-from-bottom-right` | Open the menu from the bottom right. |
To override the opening point, you can style `transform-origin` directly.


#### Disabled menu items
Expand Down
3 changes: 0 additions & 3 deletions packages/mdc-menu/simple/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ const cssClasses = {
OPEN: 'mdc-simple-menu--open',
ANIMATING_OPEN: 'mdc-simple-menu--animating-open',
ANIMATING_CLOSED: 'mdc-simple-menu--animating-closed',
TOP_RIGHT: 'mdc-simple-menu--open-from-top-right',
BOTTOM_LEFT: 'mdc-simple-menu--open-from-bottom-left',
BOTTOM_RIGHT: 'mdc-simple-menu--open-from-bottom-right',
LIST_ITEM: 'mdc-list-item',
};

Expand Down

0 comments on commit 815eade

Please sign in to comment.