Skip to content

Commit

Permalink
fix: snack bar and resume course button color fix for light dark modes (
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedbashir authored Jul 23, 2024
1 parent ce09261 commit 0a22b07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 11 additions & 5 deletions Core/Core/View/Base/OfflineSnackBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,29 @@ public struct OfflineSnackBarView: View {
HStack(spacing: 12) {
Text(CoreLocalization.NoInternet.offline)
.accessibilityIdentifier("no_internet_text")
.foregroundColor(Theme.Colors.snackbarTextColor)
Spacer()
Button(CoreLocalization.NoInternet.dismiss,
action: {
Button(action: {
withAnimation {
dismiss = true
}
}, label: {
Text(CoreLocalization.NoInternet.dismiss)
.foregroundColor(Theme.Colors.snackbarTextColor)
})
.accessibilityIdentifier("no_internet_dismiss_button")
Button(CoreLocalization.NoInternet.reload,
action: {
Button(action: {
Task {
await reloadAction()
}
withAnimation {
dismiss = true
}
})
}, label: {
Text(CoreLocalization.NoInternet.reload)
.foregroundColor(Theme.Colors.snackbarTextColor)
}
)
.accessibilityIdentifier("no_internet_reload_button")
}.padding(.horizontal, 16)
.font(Theme.Fonts.titleSmall)
Expand Down
6 changes: 5 additions & 1 deletion Core/Core/View/Base/UnitButtonView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ public struct UnitButtonView: View {
.padding(.leading, 20)
.font(Theme.Fonts.labelLarge)
CoreAssets.arrowLeft.swiftUIImage.renderingMode(.template)
.foregroundColor(Theme.Colors.styledButtonText)
.foregroundColor(
type == .continueLesson
? Theme.Colors.accentColor
: Theme.Colors.styledButtonText
)
.rotationEffect(Angle.degrees(180))
.padding(.trailing, 20)
}
Expand Down

0 comments on commit 0a22b07

Please sign in to comment.