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

Add gradient support to the paragraph TEXT #30982

Open
Tracked by #33447
carolinan opened this issue Apr 20, 2021 · 8 comments · Fixed by #43119
Open
Tracked by #33447

Add gradient support to the paragraph TEXT #30982

carolinan opened this issue Apr 20, 2021 · 8 comments · Fixed by #43119
Labels
[Block] Heading Affects the Headings Block [Block] Paragraph Affects the Paragraph Block [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.

Comments

@carolinan
Copy link
Contributor

carolinan commented Apr 20, 2021

What problem does this address?

Paragraph blocks do not have a gradient color option.
This feature was requested during user testing.

EDIT: This was done for backgrounds in #43119 but there is also a suggestion that we should be able to add graidents for text!

What is your proposed solution?

Enable support for gradient controls for the paragraph block.

Disclaimer

I am not personally invested in this 🖌️ 🌈 🙈 🎨 , but I have been asked to open issues that came up during a contributor day.

@carolinan carolinan added the [Block] Paragraph Affects the Paragraph Block label Apr 20, 2021
@mtias
Copy link
Member

mtias commented Apr 20, 2021

Was this request for background gradient or for gradient mask on the text itself?

@carolinan
Copy link
Contributor Author

It was not specified so I assumed they meant background. Asking for clarification.

But gradient headings could be nice...
https://codepen.io/leocampos/pen/pPwwNR
https://codepen.io/saclark/pen/EepFx

@mtias
Copy link
Member

mtias commented Apr 20, 2021

Yes! Those would be neat to support

@luminuu
Copy link
Member

luminuu commented Sep 10, 2021

I'd love to see the ability to put gradients on paragraphs and headlines too! Maybe a background gradient would be nice too but I'd prefer text gradient over background gradient.

@mtias mtias added the [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi label Sep 10, 2021
@carolinan carolinan added the [Block] Heading Affects the Headings Block label Dec 18, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Aug 10, 2022
@scruffian scruffian changed the title Add gradient support to the paragraph block Add gradient support to the paragraph TEXT Aug 11, 2022
@scruffian
Copy link
Contributor

Reopening so we don't forget about the text aspect of this.

@scruffian scruffian reopened this Aug 11, 2022
@phil-sola
Copy link

phil-sola commented Sep 23, 2022

I would love to see some cool text gradients make their way into blocks. A powerful header/paragraph gradient would be very nice!

@jnz31
Copy link

jnz31 commented Dec 7, 2022

+1

@mtias mtias added Needs Dev Ready for, and needs developer efforts and removed [Status] In Progress Tracking issues with work in progress labels Dec 7, 2022
@CreativeDive
Copy link
Contributor

Hey, this could be solved by using a block style variation:

register_block_style( 'core/heading',
	array(
		'name'  => 'background-clip-text',
		'label' => __( 'Text Background', 'panther' ),
	)
);
*:is(h1, h2, h3, h4, h5, h6).is-style-background-clip-text:not(.has-background) {
	background: linear-gradient(#000, #CCC);
}

*:is(h1, h2, h3, h4, h5, h6).is-style-background-clip-text {
	padding: 0!important;
	color: transparent!important;
	background-clip: text!important;
	-webkit-background-clip: text!important;
	-webkit-text-fill-color: transparent!important;
}

@mtias mtias mentioned this issue Aug 2, 2023
65 tasks
@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Heading Affects the Headings Block [Block] Paragraph Affects the Paragraph Block [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants