Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly implement button_style parameter in button's HTML #175

Merged
merged 3 commits into from
Oct 1, 2020

Conversation

CasperWA
Copy link
Owner

@CasperWA CasperWA commented Oct 1, 2020

Fixes #173

The HTML string defining the download button was updated with the button_style variable, but it was not always set, leading to silent errors.

The ButtonStyle Enum has been given a fallback to ´"DEFAULT"as well (when using theButtonStyle[name]` style).

Initialization properly handles the case where the passed button_style parameter is of type ButtonStyle.

CasperWA and others added 3 commits October 1, 2020 15:01
The new button_style variable was not supplied in several calls to the
`format()` function when setting the download button's HTML.

This also adds an automatic default for the `ButtonStyle` Enum
("DEFAULT").
A warning will be logged (and shown in the log under normal conditions)
that the supplied button_style value was wrong, and it has been set to
"DEFAULT", if it was wrong.

button_style type of ButtonStyle is also allowed now.
@CasperWA CasperWA merged commit 8d8b46e into develop Oct 1, 2020
@CasperWA CasperWA deleted the fix_173_activating-download-button branch October 1, 2020 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Download button doesn't activate
1 participant