From 815eadeaab27a9276621300f24b92a4d815efe4f Mon Sep 17 00:00:00 2001 From: Simon Olofsson Date: Wed, 17 Jan 2018 17:36:07 +0100 Subject: [PATCH] docs(menu): Remove obsolete `mdc-simple-menu--open-from` classes. (#1927) --- packages/mdc-menu/README.md | 10 +--------- packages/mdc-menu/simple/constants.js | 3 --- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/mdc-menu/README.md b/packages/mdc-menu/README.md index c083c93ecf9..204e705dcc5 100644 --- a/packages/mdc-menu/README.md +++ b/packages/mdc-menu/README.md @@ -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 diff --git a/packages/mdc-menu/simple/constants.js b/packages/mdc-menu/simple/constants.js index 2e71c52b619..52fb7368e55 100644 --- a/packages/mdc-menu/simple/constants.js +++ b/packages/mdc-menu/simple/constants.js @@ -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', };