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

Password protected form: Add wp-element-button class to the submit input #61353

Open
andersnoren opened this issue May 3, 2024 · 1 comment
Labels
[Block] Post Content Affects the Post Content Block [Type] Enhancement A suggestion for improvement.

Comments

@andersnoren
Copy link

What problem does this address?

When you set a page/post to be password protected, the "This content is password protected" form shown on the page includes a <input type="submit"> button without the wp-element-button class. That means that the button doesn't match the button styles set by the theme in theme.json, or by the user in the site editor.

What is your proposed solution?

Add the wp-element-button class to the <input type="submit"> element in the password protected form.

Twenty Twenty-Four currently TT4 with the class added
image image
@andersnoren andersnoren added the [Type] Enhancement A suggestion for improvement. label May 3, 2024
@Mamaduka Mamaduka added the [Block] Post Content Affects the Post Content Block label May 3, 2024
@Mamaduka
Copy link
Member

Mamaduka commented May 3, 2024

I believe the markup comes from the get_the_password_form() function. The block editor either has to filter its output or handle password-protected content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Content Affects the Post Content Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants