diff --git a/demo.html b/demo.html index 26b4255..d0793ad 100644 --- a/demo.html +++ b/demo.html @@ -29,7 +29,9 @@ - + + + \ No newline at end of file diff --git a/paper-item.css b/paper-item.css index e634f54..6a855e9 100644 --- a/paper-item.css +++ b/paper-item.css @@ -14,8 +14,17 @@ html /deep/ paper-item::shadow #ripple { left: 0; bottom: 0; right: 0; + pointer-events: none; } html /deep/ paper-item::shadow #icon { margin-right: 8px; } + +html /deep/ paper-item::shadow ::content > a { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +} diff --git a/paper-item.html b/paper-item.html index 6798369..3091500 100644 --- a/paper-item.html +++ b/paper-item.html @@ -16,11 +16,19 @@ Example: - Refresh - Help - Sign Out + + + +To use as a link, put an `<a>` element in the item. + +Example: + + + + + @class paper-item --> @@ -30,7 +38,7 @@ - +