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

Allow two decimal places for Opacity #31

Closed
bobbingwide opened this issue Feb 13, 2023 · 2 comments
Closed

Allow two decimal places for Opacity #31

bobbingwide opened this issue Feb 13, 2023 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@bobbingwide
Copy link
Owner

In the block editor the Opacity setting doesn't allow numbers with two decimal places. The shortcode does.

See https://s.b/oikcom/block_example/chart-block-multiple-y-axis-scales/
where the opacity is set to 0.35 in the shortcode but can only be specified as 0.3 in the block editor.
As soon as you type 0.35 it gets trimmed to 0.3.

Requirement

  • Allow Opacity setting to be specified to 2 decimal places

Also. Check how Gutenberg range controls are supposed to appear.

The slider part is missing.
image

@bobbingwide bobbingwide added bug Something isn't working enhancement New feature or request labels Feb 13, 2023
@bobbingwide bobbingwide self-assigned this Feb 13, 2023
@bobbingwide
Copy link
Owner Author

The probem with the sliders not appearing was due to them being enclosed in <PanelRow> containers.
Having removed these, and the redundant <PanelBody> containers the slider tracks appeared correctly.
image

@bobbingwide
Copy link
Owner Author

Delivered in v1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant