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

Feature: Add customizable login/logout labels to Login Block #66957

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

Infinite-Null
Copy link
Contributor

Fixes: #66956

What?

Introduced loginText and logoutText string attributes and implemented TextControl components within Inspector Controls.

Why?

  • Customization: Allows site administrators to tailor the login and logout texts to better fit the website’s branding and messaging, ensuring a cohesive user experience.
  • Consistency: Enables alignment of button/link texts with the site’s tone and style, enhancing overall design consistency.

Testing Instructions

  1. Go to homepage
  2. Click on edit site
  3. Insert Login/out block
  4. Go to block settings and change login and logout labels

Screenshots or screencast

test.mov

Introduced `loginText` and `logoutText` string attributes and implemented `TextControl` components within Inspector Controls. This allows users to customize the login and logout labels, enhancing flexibility.
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Infinite-Null <[email protected]>
Co-authored-by: himanshupathak95 <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Mamaduka Mamaduka added [Type] Enhancement A suggestion for improvement. [Block] Login/out Affects the Login/out Block labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Login/out Affects the Login/out Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add text customization options for Login/Logout block
2 participants