Giter Site home page Giter Site logo

fxedel / toggle-icon Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 7.0 4.79 MB

toggle-icon is a custom element created with Polymer. It provides an extremely powerful and customizable switch that looks like a paper-icon-button.

Home Page: http://fxedel.github.io/toggle-icon/

HTML 7.90% JavaScript 92.10%
polymer paper-elements webcomponents ui custom-elements web-components polymer2 hacktoberfest

toggle-icon's People

Contributors

artur- avatar binbalenci avatar fxedel avatar hyyan avatar metanov avatar roxus avatar stefdv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

toggle-icon's Issues

Use "tap" event instead of "click"

Hi,

An improvement could be to use "tap" event instead of "click", it will allow a better behavior when use in mobile.
Thanks.

Regards,
Alexandre

Changing version for 1.1

Hi,
could you switch to a pure semver for the latest release, that is 1.1 => 1.1.0
It makes the update automatic for one of my component!
Thanks in advance,
Pascal

Tests

There should be a tests that checks/unchecks the icon-toggle using various methods (perform click, set checked, set active) and tests if the displayed styles are correct (right icon visible, right classes set, right styles applied).

The tests can then be automated via Travis

v1.3.0 is doing BC breaks without a warning

@fxedel

According to Semantic versioning 2.0.0

Bug fixes not affecting the API increment is a patch version, backward compatible API additions/changes increment the minor version, and backward incompatible API changes increment the major version.

You have updated to polymer 2.x and released a minor version, which caused all our apps build to break now.
Updating to pure polymer 2.x element must be published in a major release

I am using version 1.1.2 which is resolved now by bower to 1.3.0 as it must not break our apps , but it does.

Please consider solving this by releasing a new version and adding a warning in the changelog for version 1.3.01

Icon does not change in Chrome

Derived from GeoloeG/gold-password-input#13.

Description

When you click on a toggle-icon and the icon-checked (or similar) property is set, the #unchecked paper-icon-button should hide and the #checked paper-icon-button should show.

Expected outcome

The visibility of both paper-icon-button toggles.

Actual outcome

Both paper-icon-buttons are always visible (over each other).

Browsers Affected

  • Chromium 50
  • Firefox 47 => not affected

Using IronCheckedElementBehavior would demand using the checked state

In order to gain any functionality from the iron-checked-element-behavior it would be necessary to
have a checked-property. If I want, for example, that an on-iron-change event is being fired to capture events in an dom-repeat template, there is no way of doing it in the current implementation.

So would it be an option to switch from active to checked?

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.