Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
887 stars 353 forks source link

Button block not following Letter Case settings in some themes #6249

Open manuelrebollo-a11y opened 2 years ago

manuelrebollo-a11y commented 2 years ago

Quick summary

The text in a Button block will display in all-caps, regarding of the typed text or the setting under Typography > Letter Case, in themes such as Archeo and Skatepark.

Steps to reproduce

  1. Edit a Post or Page.
  2. Add a Buttons set with at least one Button block.
  3. Type lower case text in the Button.
  4. Preview the Page or Post.

What you expected to happen

If the Button text is typed in lower case, or if it is set to lower case or mixed case in Typography > Letter Case, this should show in the Preview or Published Page or Post.

What actually happened

The text is all upper case in the Preview and Published Page or Post when using themes such as Archeo or Skatepark.

Context

Customer report in 5362753-zd-woothemes

Simple, Atomic or both?

Simple, Atomic

Theme-specific issue?

Archeo, Skatepark, perhaps others.

Browser, operating system and other notes

No response

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

No but the platform is still usable

Workaround details

No response

arunsathiya commented 2 years ago

πŸ“Œ HOUSEKEEPING

πŸ“Œ SCRUBBING

πŸ“Œ FINDINGS/SCREENSHOTS/VIDEO

πŸ“Œ ACTIONS

πŸ“Œ Message to Author

github-actions[bot] commented 2 years ago

Support References

This comment is automatically generated. Please do not edit it.

bobmatyas commented 2 years ago

@arunsathiya -

It seems like this is a design choice in Skatepark:

Screenshot on 2022-08-10 at 14-52-54

The preview matches the frontend of the site. I think if a user wanted the to adjust the case, a CSS adjustment would be the way to go:

.wp-block-button__link {
    text-transform: unset;
}

I couldn't reproduce on Archeo. I was able to use uppercase, lowercase, and mixed case without an issue and have it reflected on the frontend:

Screenshot on 2022-08-10 at 14-57-26

I think we could probably close this issue.

thekingsprojects commented 2 years ago

I just had a case of this reported for Meraki:

I can confirm this happens on a test site, using Meraki and also Pendant (I just tried grabbing another random theme that looked like it had all-caps button text; Marl also seems to default to all-caps but the Letter case setting works for it).

Not sure if this is maybe also a deliberate design choice for Meraki and Pendant? If it is then the CSS should be fine, but just wanted to chime in here in case the Letter case setting should actually be able to override this!