Conversation
|
@pawelkata can you resolve the comments that have been addressed? 🙏 |
callstack#4934 proposes an `actions` prop API for Appbar and callstack#5075 implements it, so the children refactor here is superseded. Appbar sources, tests and snapshots go back to their state on main.
|
|
5a809a4 to
9e83c5c
Compare
JKobrynski
left a comment
There was a problem hiding this comment.
The docs build fails on this PR, there is also a bunch of conflicts. There are some comments I'd like to post, but can you first address these conflicts and the failing check? I think some of my concerns will be resolved in process.
Squash all appbar-improvements commits and replay them on top of latest main to avoid replaying 37 commits individually through main's unrelated history (notably the v2->v3 Appbar rewrite mid-branch, which produced large, non-semantic conflicts when rebased commit-by-commit). Also adapts the new Appbar/AppbarContent code to the testID conventions established by callstack#5099 (remove derived test IDs for internal, implementation-only elements): drops the `${testID}-title-text`/`${testID}-headline-text`/`${testID}-subtitle-text` derived test IDs on non-interactive text, updating the corresponding tests to query by text content instead, and updates the migration guide's "Test IDs" section accordingly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
9e83c5c to
68973a5
Compare
@JKobrynski NVM, this needs another rebase... I'll get to it asap. |
Motivation
Replace the legacy compound Appbar API with a prop-driven Material 3 implementation. This adds small, flexible, and search variants; filled actions; scroll-aware colors; safe-area handling; and improved accessibility. Documentation, examples, and downstream usages are updated accordingly.
Related issue
Related issue: #4934
Also based on comments on Appbar from here: #4949 (comment) .
Caveats
The search bar is dropped in verbatim as it needs a separate pool of work to properly handle the "search" variant. Deliberately skipped any animations related work at this stage due to lack of testing device and the PR already being quite big. Can be tackled at a later stage.
NOTE: The PR drops support for the bottom app bar variant, which is now - according to the official docs - part of the
Toolbars.Test plan
yarn test src/components/__tests__/Appbar.yarn lintandyarn typecheck.