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

Button Pressed TextureStyleBox texture isn't displayed. #58874

Closed
jedesjardins opened this issue Mar 7, 2022 · 1 comment
Closed

Button Pressed TextureStyleBox texture isn't displayed. #58874

jedesjardins opened this issue Mar 7, 2022 · 1 comment

Comments

@jedesjardins
Copy link

Godot version

3.4.stable

System information

MacOS Monterey 12.2.1 Intel 16"

Issue description

The button pressed TextureStyleBox's texture never displays, although the TextureStyleBox's custom content_margin IS used.

Steps to reproduce

  1. Add a TextureStyleBox to a Button's pressed style.
  2. Run the project and see that the pressed style box texture isn't displayed.

Minimal reproduction project

ButtonTest.zip

@Calinou
Copy link
Member

Calinou commented Mar 7, 2022

Duplicate of #37527. This is caused by your focus stylebox being opaque and being drawn on top of the pressed stylebox. To resolve this, use a transparent design for your focus stylebox (e.g. just an outline) or set a StyleBoxEmpty for the Focus style (not recommended for accessibility reasons).

Minimal reproduction project with StyleBoxEmpty for the focus style: ButtonTest.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants