Skip to content

Commit

Permalink
🐛 Fix background handling
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Dec 18, 2024
1 parent 10dcc73 commit cfcc584
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ public struct LuminareFilled: ViewModifier {
public struct LuminareBordered: ViewModifier {
@Environment(\.isEnabled) private var isEnabled
@Environment(\.luminareIsBordered) private var isBordered
@Environment(\.luminareHasBackground) private var hasBackground
@Environment(\.luminareCompactButtonCornerRadii) private var cornerRadii

private let isHovering: Bool
Expand Down Expand Up @@ -437,7 +438,7 @@ public struct LuminareBordered: ViewModifier {
content
.clipShape(.rect(cornerRadii: cornerRadii))
.background {
if isHovering {
if isHovering, hasBackground {
UnevenRoundedRectangle(cornerRadii: cornerRadii)
.strokeBorder(fill)
} else if isBordered {
Expand Down

0 comments on commit cfcc584

Please sign in to comment.