Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

[FeatureRequest]: response.js vertical freedom without beeing a button #5

Open
Inoir opened this issue Apr 3, 2017 · 0 comments
Open

Comments

@Inoir
Copy link

Inoir commented Apr 3, 2017

Hey,

just tried to apply an response effect on some element which isnt a button.
Problem here is in the response.js you check only for button classes for free y-position.

Maybe you can implement some class you can apply so you also get free-y-position without beeing a button element.

let boxedButton = this._element.classList.contains(CLASS_BUTTON_PRIMARY) || this._element.classList.contains(CLASS_BUTTON_SECONDARY) || this._element.classList.contains(CLASS_BUTTON_FLOATING);

    this._useTriggerX = boxedButton || !this._element.classList.contains(CLASS_BUTTON_ICON);
    this._useTriggerY = boxedButton;
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

1 participant