The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design Polymer – Making paper-item a link but keep selected styling

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #245533

    Following the docs, I’ve added an anchor around the paper-item, however a few things slightly complicate the issue.

    Firstly, the anchor overrights the color and adds an underline. No biggie, can style that.

    Secondly, when used with paper-menu, the iron-selected class which bolds the selected item binds to the anchor and not paper-item.

    <a name="view1" href="/view1" class="iron-selected">
    <iron-icon icon="home" item-icon></iron-icon>

    Doing something with css seems pretty hacky?

    .nav-core__link {
    color: var(--primary-text-color);
    text-decoration: none;
    .nav-core__link.iron-selected paper-icon-item {

    Is there a less hacky method available?

Viewing 1 post (of 1 total)
  • The forum ‘Design’ is closed to new topics and replies.