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

[Merged by Bors] - Fix bevy_ui compile error without bevy_text #7877

Conversation

TimJentzsch
Copy link
Contributor

Objective

Solution

  • Guard the accessibility module behind the bevy_text feature and only add the plugin when it's enabled.

Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've taken a look: it appears that all of the currently included accessibility features are text-reliant. As a result, this fix appears correct to me.

@alice-i-cecile
Copy link
Member

Ping @ndarilek for review if you're able.

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Accessibility A problem that prevents users with disabilities from using Bevy A-UI Graphical user interfaces, styles, layouts, and widgets labels Mar 2, 2023
@ndarilek
Copy link
Contributor

ndarilek commented Mar 2, 2023

Thanks for the ping. LGTM--not sure how or if I can approve a PR but I certainly do this one. :)

@TimJentzsch
Copy link
Contributor Author

You can under the tab "Files changed" and then the "Review changes" button offers the option to Approve, Request Changes or just leave Comments :)

Copy link
Contributor

@ndarilek ndarilek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, well, LGTM again. :) Thanks!

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Mar 2, 2023
@alice-i-cecile
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Mar 2, 2023
# Objective

- Fixes #7874.
- The `bevy_text` dependency is optional for `bevy_ui`, but the `accessibility` module depended on it.

## Solution

- Guard the `accessibility` module behind the `bevy_text` feature and only add the plugin when it's enabled.
@bors bors bot changed the title Fix bevy_ui compile error without bevy_text [Merged by Bors] - Fix bevy_ui compile error without bevy_text Mar 2, 2023
@bors bors bot closed this Mar 2, 2023
@TimJentzsch TimJentzsch deleted the 7874-fix-bevy_ui-compile-error branch March 2, 2023 23:21
Shfty pushed a commit to shfty-rust/bevy that referenced this pull request Mar 19, 2023
# Objective

- Fixes bevyengine#7874.
- The `bevy_text` dependency is optional for `bevy_ui`, but the `accessibility` module depended on it.

## Solution

- Guard the `accessibility` module behind the `bevy_text` feature and only add the plugin when it's enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Accessibility A problem that prevents users with disabilities from using Bevy A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile error when checking bevy_ui
3 participants