Skip to content

Commit

Permalink
Fix TabBarView unselected content dark mode colors (#182)
Browse files Browse the repository at this point in the history
* Fix TabBarView unselected content dark mode colors

* spotless
  • Loading branch information
jemmaSlater authored Aug 7, 2024
1 parent cae5823 commit 50707c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion components-compose/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ Allowed headings:

## [Unreleased]

### Changed
### Fixed

* TabBarView unselected content dark mode colors

## Changed

* New parameter `contentHorizontalPadding` on BottomSheetView

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import uk.gov.hmrc.components.compose.atom.text.TabBarText
import uk.gov.hmrc.components.compose.ui.theme.HmrcBlack
import uk.gov.hmrc.components.compose.ui.theme.HmrcGrey1
import uk.gov.hmrc.components.compose.ui.theme.HmrcGrey1Dark
import uk.gov.hmrc.components.compose.ui.theme.HmrcTheme
import uk.gov.hmrc.components.compose.ui.theme.HmrcWhite

Expand Down Expand Up @@ -155,7 +155,11 @@ private fun HmrcTabItems(
} else {
HmrcWhite
},
unselectedContentColor = HmrcGrey1
unselectedContentColor = if (tabBarStyle == TabBarViewStyle.LIGHT) {
HmrcTheme.colors.hmrcGrey1
} else {
HmrcGrey1Dark
}
) {
TabBarText(
text = tabText,
Expand Down

0 comments on commit 50707c1

Please sign in to comment.