Skip to content

Commit cd85c88

Browse files
committed
Merge branch 'main' of github.com:hmrc/android-components
2 parents ac4557d + c45dae9 commit cd85c88

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGELOG.md

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

1717
## [Unreleased]
1818

19+
### Changed
20+
21+
* Updated hmrc_secondary_button_ripple.xml to use high contrast alpha from Material Design.
22+
* Added `hmrc_secondary_button_ripple` to public colour.
23+
1924
## [4.1.0] - 2022-07-06
2025

2126
### Changed

components/src/main/res/color/hmrc_secondary_button_ripple.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
xmlns:tools="http://schemas.android.com/tools"
2020
tools:ignore="PrivateResource">
2121

22-
<item android:alpha="@dimen/mtrl_low_ripple_pressed_alpha" android:color="@color/hmrc_blue" android:state_pressed="true" />
23-
<item android:alpha="@dimen/mtrl_low_ripple_focused_alpha" android:color="@color/hmrc_blue" android:state_focused="true" android:state_hovered="true" />
24-
<item android:alpha="@dimen/mtrl_low_ripple_focused_alpha" android:color="@color/hmrc_blue" android:state_focused="true" />
25-
<item android:alpha="@dimen/mtrl_low_ripple_hovered_alpha" android:color="@color/hmrc_blue" android:state_hovered="true" />
26-
<item android:alpha="@dimen/mtrl_low_ripple_default_alpha" android:color="@color/hmrc_blue" />
22+
<item android:alpha="@dimen/mtrl_high_ripple_pressed_alpha" android:color="@color/hmrc_blue" android:state_pressed="true" />
23+
<item android:alpha="@dimen/mtrl_high_ripple_focused_alpha" android:color="@color/hmrc_blue" android:state_focused="true" android:state_hovered="true" />
24+
<item android:alpha="@dimen/mtrl_high_ripple_focused_alpha" android:color="@color/hmrc_blue" android:state_focused="true" />
25+
<item android:alpha="@dimen/mtrl_high_ripple_hovered_alpha" android:color="@color/hmrc_blue" android:state_hovered="true" />
26+
<item android:alpha="@dimen/mtrl_high_ripple_default_alpha" android:color="@color/hmrc_blue" />
2727

2828
</selector>

components/src/main/res/values/public.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<public name="hmrc_information_message_info_headline_background" />
2525
<public name="hmrc_information_message_urgent_headline_background" />
2626
<public name="hmrc_information_message_notice_headline_background" />
27+
<public name="hmrc_secondary_button_ripple" type="color" />
2728

2829
<!-- Styles -->
2930
<public name="MaterialTextButtonNoInset" type="style" />

0 commit comments

Comments
 (0)