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

BackgroundGradient: Add ability to specify complex multi linear/radial gradients #120

Open
chrischrischris opened this issue Jun 25, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@chrischrischris
Copy link
Contributor

Expected Behaviour

An end user should be able to specify a gradient that contains multiple linear-gradient and radial-gradient.

Actual Behaviour

Only a single gradient can be defined.

Sample Code that illustrates the problem

Trying to use:

background:
linear-gradient(217deg, rgba(255,0,0,.8), rgba(255,0,0,0) 70.71%),
linear-gradient(127deg, rgba(0,255,0,.8), rgba(0,255,0,0) 70.71%),
linear-gradient(336deg, rgba(0,0,255,.8), rgba(0,0,255,0) 70.71%);

by pasting into the the CSS field results in the gradient being changed to:

linear-gradient(217deg, rgba(255, 0, 0, 0.8) 0.0%,rgba(255, 0, 0, 0) 14.1%,rgba(0, 255, 0, 0.8) 28.3%,rgba(0, 255, 0, 0) 42.4%,rgba(0, 0, 255, 0.8) 56.6%,rgba(0, 0, 255, 0) 70.7%)

Implementation:
Since the interactive gradient creator does not support multi-gradients, a new checkbox or field to be added that allows for multi-gradients. In place of the interactive creator, a preview of the gradient will be shown.

@chrischrischris chrischrischris added the enhancement New feature or request label Jun 25, 2020
@chrischrischris chrischrischris self-assigned this Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant