Skip to content

Commit

Permalink
Improve wording
Browse files Browse the repository at this point in the history
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
  • Loading branch information
mhsmith and freakboy3742 authored Jan 20, 2025
1 parent f6c8041 commit f82b4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changes/3111.feature.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
The ``align_items`` and ``justify_content`` properties now have more explicit aliases: ``horizontal_align_items``, ``vertical_align_items``, ``horizontal_align_content`` and ``vertical_align_content``.
The ``align_items`` and ``justify_content`` properties now have the aliases ``horizontal_align_items``, ``vertical_align_items``, ``horizontal_align_content`` and ``vertical_align_content`` that explicitly describe layout behavior in the named direction.
4 changes: 2 additions & 2 deletions core/src/toga/style/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def _hidden(self) -> bool:
######################################################################

def update(self, **properties):
# Set direction first, as it may change the interpretation of other properties
# in _update_property_name.
# Set direction first, as it may change the interpretation of direction-based
# property aliases in _update_property_name.
if direction := properties.pop("direction", None):
self.direction = direction

Expand Down

0 comments on commit f82b4a5

Please sign in to comment.