Voice message UI polish (part 2) (#1995)

* Update compund

* Fix create poll screen bin button style

* Fix timeline menu description for voice messages

* Fix bin button in ComposerToolbar

* Add VoiceMessageButtonStyle

* Update compound & fix breaking changes

* Fix voice message bin size

* Refactor VoiceMessageRecordingButton

* Fix preview tests
This commit is contained in:
Alfonso Grillo
2023-11-01 10:03:35 +01:00
committed by GitHub
parent 213ae984cf
commit 4af8ef2a5f
25 changed files with 51 additions and 87 deletions
@@ -139,12 +139,11 @@ private struct CreatePollOptionView: View {
var body: some View {
HStack {
if editMode?.wrappedValue == .active {
Button(action: deleteAction) {
Button(role: .destructive, action: deleteAction) {
CompoundIcon(\.delete)
.foregroundColor(.compound.iconCriticalPrimary)
}
.disabled(!canDeleteItem)
.buttonStyle(.plain)
.buttonStyle(.compound(.plain))
.accessibilityLabel(L10n.actionRemove)
}
TextField(text: $text) {