Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Button with input focus sometimes appears bold after switching tabs #29

Closed
grokys opened this issue Jun 24, 2015 · 6 comments
Closed

Button with input focus sometimes appears bold after switching tabs #29

grokys opened this issue Jun 24, 2015 · 6 comments
Assignees

Comments

@grokys
Copy link

grokys commented Jun 24, 2015

In Chrome 43, sometimes after clicking a button then changing tabs in Chrome or changing to a different application, the button will appear bold until clicked again. This can be seen on the demo page.

@kungufli
Copy link

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?

@ilin-t
Copy link

ilin-t commented Aug 4, 2015

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 ?

@notwaldorf
Copy link
Contributor

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 :)

@motss
Copy link

motss commented Aug 22, 2015

can try to eliminate the bold font by explicitly setting the font-weight of the focused paper-button to normal

@joshheinrichs
Copy link

You can add this CSS to get rid of the bold:

paper-button::shadow .keyboard-focus {
    font-weight: normal;
}

@cdata cdata self-assigned this Oct 19, 2015
@cdata
Copy link
Contributor

cdata commented Oct 19, 2015

Closing this as a dupe of #24.

@cdata cdata closed this as completed Oct 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants