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

.toggle-label and .toggle-container must have same vertical-align #135

Open
2 tasks done
bebuch opened this issue May 4, 2018 · 0 comments
Open
2 tasks done

.toggle-label and .toggle-container must have same vertical-align #135

bebuch opened this issue May 4, 2018 · 0 comments

Comments

@bebuch
Copy link

bebuch commented May 4, 2018

Description

When .toggle-label is vertical-align: middle; then .toggle-container must be too. Otherwise they are not on the same line. Try display:inline-block; for a paper-toggle-button!

Expected outcome

Switch and label are always on the same line.

Actual outcome

Switch and label are not on the same line if CSS display is not block.

Steps to reproduce

  1. git clone https://github.com/bebuch/paper-toggle-button.git
  2. cd paper-toggle-button
  3. I wrote a demo and a fix:
    3.1. Demo: git checkout old-behavior
    3.2. Demo with fix: git checkout new-behavior
  4. bower install
  5. polymer serve
  6. Open Web-Browser
  7. http://127.0.0.1:8000/components/paper-toggle-button/demo/demo.html

Pull request #131

Browsers Affected

  • Chrome
  • Firefox
  • [?] Safari 9
  • [?] Safari 8
  • [?] Safari 7
  • [?] Edge
  • [?] IE 11
  • [?] IE 10
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

1 participant