Skip to content

Label Icons display incorrect color within .borderedProminent Buttons #293

@GavynHolt

Description

@GavynHolt

In Android, when displaying a Button with the style of .borderedProminent, and supplying a Label, the icon displays as the Primary colour, which is a dark colour, while the text displays white. In iOS, the Icon matches the white colour of the Button. I am thinking that there is somewhere in SkipUI where the Color "primary" is accidentally being set instead of a system color that would be aware of contrast and light/dark mode settings.

Button(action: {
    // redacted
}, label: {
    Label("Arrive", systemImage: "person.badge.shield.checkmark.fill")
        .frame(minWidth: 0, maxWidth: .infinity, minHeight: 30, maxHeight: 30)
})
.buttonStyle(.borderedProminent)
.tint(.teal)

Android Screenshot

Image

iOS Screenshot

Image

Metadata

Metadata

Assignees

Labels

appearanceInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIbugSomething isn't workingcomposeLimitation of Jetpack Compose or issue with SwiftUI translation

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions