mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Add a11y label/hint to remote-change prompt on macOS
This commit is contained in:
parent
03a568cfdc
commit
555b988282
@ -20,6 +20,8 @@ struct PostEditorStatusToolbarView: View {
|
||||
}, label: {
|
||||
Image(systemName: "square.and.arrow.down")
|
||||
})
|
||||
.accessibilityLabel(Text("Update post"))
|
||||
.accessibilityHint(Text("Replace this post with the server version"))
|
||||
}
|
||||
.padding(.horizontal)
|
||||
.background(Color.primary.opacity(0.1))
|
||||
@ -45,6 +47,8 @@ struct PostEditorStatusToolbarView: View {
|
||||
}, label: {
|
||||
Image(systemName: "trash")
|
||||
})
|
||||
.accessibilityLabel(Text("Delete"))
|
||||
.accessibilityHint(Text("Delete this post from your Mac"))
|
||||
}
|
||||
.padding(.horizontal)
|
||||
.background(Color.primary.opacity(0.1))
|
||||
|
Loading…
Reference in New Issue
Block a user