Skip to content

Commit 6b627c2

Browse files
pekingmeimhappi
authored andcommitted
[Tabs] Integrated divider token output into the background drawables.
PiperOrigin-RevId: 559477915
1 parent a782e7a commit 6b627c2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/java/com/google/android/material/tabs/res/drawable-v21/m3_tabs_background.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@
1919
<item>
2020
<shape
2121
android:shape="rectangle">
22-
<!-- TODO(b/272585197) Manually map this based on the token mapping of divider. -->
23-
<solid android:color="?attr/colorSurfaceVariant"/>
22+
<solid android:color="@macro/m3_comp_divider_color"/>
2423
</shape>
2524
</item>
2625
<!-- ..., then draws a rectangle with the container color to cover the area not for the divider. -->
27-
<item android:bottom="1dp">
26+
<item android:bottom="@dimen/m3_comp_divider_thickness">
2827
<shape
2928
android:shape="rectangle">
3029
<solid android:color="@macro/m3_comp_primary_navigation_tab_container_color"/>

lib/java/com/google/android/material/tabs/res/drawable-v23/m3_tabs_background.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
<item
2727
android:gravity="bottom">
2828
<shape>
29-
<size android:height="1dp" />
30-
<!-- TODO(b/272585197) Manually map this based on the token mapping of divider. -->
31-
<solid android:color="?attr/colorSurfaceVariant" />
29+
<size android:height="@dimen/m3_comp_divider_thickness" />
30+
<solid android:color="@macro/m3_comp_divider_color" />
3231
</shape>
3332
</item>
3433
</layer-list>

0 commit comments

Comments
 (0)