bevy/crates/bevy_ui/src
François ba3069f008 Change default FocusPolicy to Pass (#7161)
# Objective

- While building UI, it makes more sense for most nodes to have a `FocusPolicy` of `Pass`, so that user interaction can correctly bubble
- Only `ButtonBundle` blocks by default

This change means that for someone adding children to a button, it's not needed to change the focus policy of those children to `Pass` for the button to continue to work.

---

## Changelog

- `FocusPolicy` default has changed from `FocusPolicy::Block` to `FocusPolicy::Pass`

## Migration Guide

- `FocusPolicy` default has changed from `FocusPolicy::Block` to `FocusPolicy::Pass`
2023-01-12 17:15:20 +00:00
..
flex Added Ref to allow immutable access with change detection (#7097) 2023-01-11 15:41:54 +00:00
render Fix overflow scaling for images (#7142) 2023-01-09 21:43:30 +00:00
widget text aspect ratio bug fix (#6825) 2022-12-20 16:44:12 +00:00
camera_config.rs Fix UiCameraConfig doc (link to the Camera page) (#6969) 2022-12-20 23:32:04 +00:00
focus.rs Change default FocusPolicy to Pass (#7161) 2023-01-12 17:15:20 +00:00
geometry.rs Add const to methods and const defaults to bevy_ui (#5542) 2023-01-04 19:58:09 +00:00
lib.rs Remove ImageMode (#6674) 2022-11-18 21:16:32 +00:00
node_bundles.rs Change default FocusPolicy to Pass (#7161) 2023-01-12 17:15:20 +00:00
stack.rs Add z-index support with a predictable UI stack (#5877) 2022-11-02 22:06:04 +00:00
ui_node.rs Fix various typos (#7096) 2023-01-06 00:43:30 +00:00
update.rs Add z-index support with a predictable UI stack (#5877) 2022-11-02 22:06:04 +00:00