Update join call button in room header (#5143)

* Change the Join Call button to 1.) show a Video Call Solid icon, 2.) change the label from "Join call" to "Join", and 3.) change the background color to primary/rest.

* Add a clarifying comment and snapshots.
This commit is contained in:
Aaron Thornburgh
2026-02-25 17:24:10 +01:00
committed by GitHub
parent 3b4a2f3324
commit b7bff0a29e
17 changed files with 43 additions and 36 deletions
@@ -22,12 +22,19 @@ struct JoinCallButton: View {
var glassButton: some View {
Button(action: action) {
Text(L10n.a11yJoinCall)
.font(.compound.bodyLG.weight(.medium))
.foregroundStyle(.compound.textOnSolidPrimary)
// Use an HStack on iOS 26 as .labelStyle(.titleAndIcon) doesn't
// seem to have any effect on a label in the navigation bar 🤷‍♂️
HStack(spacing: 6) {
CompoundIcon(\.videoCallSolid)
Text(L10n.actionJoin)
.padding(.trailing, 4)
}
.font(.compound.bodyLG.weight(.medium))
.foregroundStyle(.compound.textOnSolidPrimary)
}
.tint(.compound.bgAccentRest)
.tint(.compound.bgActionPrimaryRest)
.backportButtonStyleGlassProminent()
.accessibilityLabel(L10n.a11yJoinCall)
}
var customButton: some View {