Giter Club home page Giter Club logo

Comments (6)

kungufli avatar kungufli commented on August 16, 2024

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.

ilin-t avatar ilin-t commented on August 16, 2024

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.

notwaldorf avatar notwaldorf commented on August 16, 2024

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.

motss avatar motss commented on August 16, 2024

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

from paper-button.

joshheinrichs avatar joshheinrichs commented on August 16, 2024

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

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

from paper-button.

cdata avatar cdata commented on August 16, 2024

Closing this as a dupe of #24.

from paper-button.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.