Comments (6)
This bug was already reported in the past (#24), and is still present in the latest 1.0.3 version of the element. Also, it affects (at least) paper-icon-button, paper-checkbox, paper-radio-button and paper-slider too. @notwaldorf @cdata Any news on this?
from paper-button.
The bug still exists. I tried with disabling and then enabling the button after the on-click method is finished but it still did not work. It is also happening on when browsing the apps from smartphones and tablets. Is there any feedback from google, or maybe you have some suggestion how to temporarily fix this ?
from paper-button.
The problem is that this behaviour isn't entirely incorrect. After clicking the button, it stays focused (this is also true of native buttons). When you switch to a different tab, and then back to the original one, the button is styled as if it's focused, which it technically is.
Here's a demo of the native HTML button doing this as well: http://output.jsbin.com/bijukuqofo
/@cdata for input/to tell me i'm wrong :)
from paper-button.
can try to eliminate the bold font by explicitly setting the font-weight of the focused paper-button
to normal
from paper-button.
You can add this CSS to get rid of the bold:
paper-button::shadow .keyboard-focus {
font-weight: normal;
}
from paper-button.
Closing this as a dupe of #24.
from paper-button.
Related Issues (20)
- Problem with Safari HOT 1
- document.createElement('paper-button') DOMException HOT 6
- Keyboard enter or space does not trigger link HOT 3
- Button is not disabled with disabled attribute #2.0-preview HOT 1
- Cancel tap event HOT 1
- Button should always be bold (14pt Roboto medium)
- Import should be paper-material-styles for 2.0 preview HOT 4
- data-bind active attribute HOT 2
- Cannot remove underline when used with <a> HOT 2
- In #2.0-preview paper-button import paper-material.html instead of paper-material-styles.html HOT 1
- Setting the active attribute of a paper-button inserted into a slot using setAttribute requires calling it twice before it is updated. HOT 2
- paper-button throws violation warning message HOT 1
- Links in demo are announced as button HOT 1
- <paper-button> (etc) fails on polymer-3-starter-kit apps HOT 12
- paper-button page on webcomponents.org is broken HOT 6
- paper-button currently imports deprecated iron-flex-layout HOT 1
- Wrong install command in webcomponents page HOT 1
- webcomponents.org page shows wrong version for paper-button HOT 1
- npm install produce FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory HOT 3
- How to use paper button
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paper-button.