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

fix incorrect docs for JustifyItems and JustifySelf #9539

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

tadeohepperle
Copy link
Contributor

Objective

Fixes incorrect docs in bevy_ui for JustifyItems and JustifySelf.

Solution

JustifyItems and JustifySelf target the main axis and not the cross axis.

@github-actions
Copy link
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@alice-i-cecile alice-i-cecile added C-Docs An addition or correction to our documentation A-UI Graphical user interfaces, styles, layouts, and widgets labels Aug 22, 2023
Copy link
Contributor

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

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

This seems like a strict improvement on what we have. Although at some point we should probably modify the docs to account for the fact that Grid does use "main" and "cross" axis, and uses the same alignment properties to control the "block" and "inline" axis.

@Selene-Amanita Selene-Amanita 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 Aug 22, 2023
@ickshonpe
Copy link
Contributor

ickshonpe commented Aug 22, 2023

This is better but I think we should try to include examples with the docs for each variant. The terms "main" and "cross" axis aren't meaningful to most users.

@mockersf mockersf added this pull request to the merge queue Aug 23, 2023
Merged via the queue into bevyengine:main with commit f813831 Aug 24, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Docs An addition or correction to our documentation 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.

6 participants