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
git clone https://github.com/bebuch/paper-toggle-button.git
cd paper-toggle-button
- I wrote a demo and a fix:
3.1. Demo: git checkout old-behavior
3.2. Demo with fix: git checkout new-behavior
bower install
polymer serve
- Open Web-Browser
- http://127.0.0.1:8000/components/paper-toggle-button/demo/demo.html
Pull request #131
Browsers Affected