Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
bower_components/
/public
.DS_Store
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The following custom properties and mixins are available for styling:
| `--paper-menu` | Mixin applied to the menu | `{}` |
| `--paper-menu-selected-item` | Mixin applied to the selected item | `{}` |
| `--paper-menu-focused-item` | Mixin applied to the focused item | `{}` |
| `--paper-menu-focused-item-before` | Mixin applied to the ::before pseudo-element for the focused item | `{}` |
| `--paper-menu-focused-item-after` | Mixin applied to the ::after pseudo-element for the focused item | `{}` |

### Accessibility
Expand Down
10 changes: 10 additions & 0 deletions paper-menu-shared-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@

@apply(--paper-menu-focused-item);
}

.selectable-content > ::content > *:focus:before {
@apply(--layout-fit);
background: currentColor;
opacity: var(--dark-divider-opacity);
content: '';
pointer-events: none;

@apply(--paper-menu-focused-item-before);
}

.selectable-content > ::content > *:focus:after {
@apply(--layout-fit);
Expand Down
1 change: 1 addition & 0 deletions paper-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
`--paper-menu` | Mixin applied to the menu | `{}`
`--paper-menu-selected-item` | Mixin applied to the selected item | `{}`
`--paper-menu-focused-item` | Mixin applied to the focused item | `{}`
`--paper-menu-focused-item-before` | Mixin applied to the ::before pseudo-element for the focused item | `{}`
`--paper-menu-focused-item-after` | Mixin applied to the ::after pseudo-element for the focused item | `{}`

### Accessibility
Expand Down