review button highlight

This commit is contained in:
Ian Gulliver
2026-10-18 10:45:13 -07:00
parent e2ef592dfd
commit bc3fc7ffaf
3 changed files with 4 additions and 3 deletions
+2
View File
@@ -402,6 +402,7 @@ private struct WebButton: View {
struct SmallLinkButtonStyle: ButtonStyle {
var color = Palette.accent
var border = Palette.border
var fill = Color.clear
@Environment(\.isEnabled) private var enabled
func makeBody(configuration: ButtonStyleConfiguration) -> some View {
@@ -409,6 +410,7 @@ struct SmallLinkButtonStyle: ButtonStyle {
.font(Fonts.font(11))
.foregroundStyle(color)
.padding(.horizontal, 6)
.background(fill, in: RoundedRectangle(cornerRadius: 4))
.overlay(RoundedRectangle(cornerRadius: 4).stroke(border))
.opacity(enabled ? 1 : 0.45)
.contentShape(Rectangle())