Skip to content

Commit 2e659ff

Browse files
authored
HMA-5257 Reduced minHeight for InformationMessageCardView buttons from 60dp to 0dp so they do not look so big in the context of the InformationMessageCardView. (#72)
1 parent cba9801 commit 2e659ff

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Allowed headings:
1616

1717
## [Unreleased]
1818

19+
### Changed
20+
21+
* Updated `InformationMessageCardView` buttons so that the button `minHeight` is reset from the default 60dp to 0dp. This means that buttons now only occupy the vertical space that they need and no more.
22+
1923
## [3.21.0] - 2022-01-25
2024

2125
### Added

components/src/main/java/uk/gov/hmrc/components/organism/information/InformationMessageCardView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class InformationMessageCardView @JvmOverloads constructor(
100100

101101
binding.headlineButtonsContainer.visibility = if (buttons.isNotEmpty()) View.VISIBLE else View.GONE
102102
buttons.forEach {
103+
it.minHeight = 0
103104
it.setMargins(spacing16, spacing8, spacing16, 0)
104105
it.backgroundTintList = ContextCompat.getColorStateList(context, R.color.hmrc_white)
105106
it.gravity = Gravity.CENTER
-1.27 KB
Loading
-1.41 KB
Loading
-1021 Bytes
Loading

0 commit comments

Comments
 (0)