Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu not changing #40

Open
bogdan-nourescu opened this issue Mar 22, 2015 · 3 comments
Open

Menu not changing #40

bogdan-nourescu opened this issue Mar 22, 2015 · 3 comments

Comments

@bogdan-nourescu
Copy link

If you click on the gap between the <a> element and the <paper-item>, the selected element change, but the section doesn't change.
A quick fix is to make the <a> tag be as high as the <paper-item> element
image

@dcharkes
Copy link

I noticed the same thing.

Actually the quick fix does not work for me, as the paper-item will grow too.

Does the paper-item not expect to have a link inside? The demo has the same issue.

@bogdan-nourescu
Copy link
Author

I actually added a class to each button "nopadding" and the following css (basically moving the padding from the paper-item to the "a" tag):

paper-item.nopadding::shadow .button-content{
        padding:0;
    }
    paper-item.nopadding>a{
        padding: 0.8em 0.3em;
    }

@dcharkes
Copy link

dcharkes commented May 1, 2015

That works like a charm, I actually moved it up till the menu-item.

  core-menu.fixlinkpadding paper-item::shadow .button-content{
    padding:0;
  }
  core-menu.fixlinkpadding paper-item>a{
    padding: 0.8em 0.3em;
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants