Giter Club home page Giter Club logo

juicy-popover's People

Contributors

alshakero avatar joozek78 avatar kegor avatar patrykszwer avatar tekreme73 avatar tomalec avatar warpech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

juicy-popover's Issues

Unable to customize the expandable z-index

Steps to reproduce

Use the element with a standard setup. The hard-coded z-index value for the expandable element can be too restrictive for some usage.

We may need to increase its value or decrease it.

Expected result

z-index on the expandable CSS id can be customize to match the application context.

Actual result

z-index is hard-coded to 999.

Browsers affected

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

document._currentScript not needed

This custom element has a variant of the following line:

var script = document._currentScript || document.currentScript;
var template = script.previousElementSibling;

document._currentScript was only needed in IE11, but Starcounter does not support that browser anymore.

Therefore, this code can be simplified to:

var template = document.currentScript.previousElementSibling;

If we want to drop support for IE11.

Typo in the API

#4 introduced a typo in the API. Slot name expendable should be called expandable.

Should we fix or alias the API? I vote for aliasing, to avoid yet another breaking change. juicy-popover is used in many apps.

cc @tomalec

Expand on more events than just "mousedown"

Currently, juicy-popover expands on mousedown event and collapses on mousedown outside.

Add a new attribute expand-event (and perhaps collapse-event?) that allows to specify alternative events, such as mouseover (mouseenter?)

cc @pilqerai

polymer 3.0?

Are there any plans to update to be module based?

[bower] package issue

Hello.
It seems that the bower package has a problem.

$ bower install juicy-popover --save
bower    invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
bower    ENOTFOUND Package juicy-popover not found

Al the best,
Hervé

Clicking on the expandable should not collapse

Right now, when I click on the body of the expandable, unless on an <input> element, the expandable collapses.

It should only collapse when clicked outside.

I propose to change

if (ev.target.nodeName === "INPUT") {
this.ignore = true; //just a friendly feature - don't collapse the expandable if clicked on a handler which is an input
}
to just:

this.ignore = true;

remove .bowerrc (use polyserve instead)

This repo uses .bowerrc file which causes it to act arcane - when you type bower install, the dependencies get installed in the parent directory.

Proposed solution - remove .bowerrc and recommend using polyserve.

Same thing was done in Juicy/juicy-select#8

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.