Replace the Cancel button with a Close button on the Space Filters screen. (#5408)

* Updated placement and type of button

Moved the "X"/Close button from the left to the right, and made it a primary action.

* Update snapshots.

---------

Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
Aaron Thornburgh
2026-04-17 17:14:17 +02:00
committed by GitHub
parent 726ab435a0
commit f540c5a79a
3 changed files with 6 additions and 6 deletions

View File

@@ -35,8 +35,8 @@ struct ChatsSpaceFiltersScreen: View {
@ToolbarContentBuilder
private var toolbar: some ToolbarContent {
ToolbarItem(placement: .cancellationAction) {
ToolbarButton(role: .cancel) {
ToolbarItem(placement: .primaryAction) {
ToolbarButton(role: .close) {
context.send(viewAction: .cancel)
}
}