confirmationDialog background is translucent on Android (90% surface)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start with ConfirmationDialogPresentation and the Color.overlayBackground definition in Sources/SkipUI/SkipUI/Color/Color.swift; compare it with the systemBarBackground approach mentioned in the issue. Reproduce the dialog over a Form or List on Android and check how the background affects text readability. Done when the dialog content is readable against an opaque background, or honors .presentationBackground(...).
Written by the indexing model from the issue text.
Description
Version: skip-ui 1.60.0; the same code is in 1.66.3.
ConfirmationDialogPresentation draws its sheet with Color.overlayBackground, which is:
static let overlayBackground: Color = Color(colorImpl: {
MaterialTheme.colorScheme.surface.copy(alpha: Float(0.9))
})
(Sources/SkipUI/SkipUI/Color/Color.swift)
Over a busy screen (a Form, a List), whatever is behind the dialog shows through its title, message and buttons, which makes them hard to read. On iOS, the action sheet's material looks opaque. Because it's a static let, an app can't override it.
To reproduce: a Form with several rows, plus a .confirmationDialog with a title, a message and two buttons (one with role: .destructive). Show it on Android: the form rows are readable through the dialog.
Suggestion: make it opaque, e.g. MaterialTheme.colorScheme.surfaceColorAtElevation(3.dp) like systemBarBackground, or honour .presentationBackground(...) on the dialog's content.
- Dominant language
- Swift
- Stars
- 331
- Forks
- 89
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 26
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from skiptools/skip-ui
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
skiptools/skip-ui#495 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
All issues in skiptools/skip-ui
Similar issues
-
a: plugins d: docs/ fyi-macos P2 platform-ios platform-macos team-ios
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
swiftlang/github-workflows#352 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jphacks/kz_2601#1375 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day