Skip to content

Commit 42df390

Browse files
nickroutpekingme
authored andcommitted
[Documentation] A11y refresh.
PiperOrigin-RevId: 354311833
1 parent 1fb57bc commit 42df390

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

docs/components/Chip.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ path: /catalog/chips/
1111
[Chips](https://material.io/components/chips) are compact elements that
1212
represent an input, attribute, or action.
1313

14-
![Hero image of an input chip](assets/chips/chips_hero.png)
14+
![Email with purple "Compose" header and grey chip with an email address on the
15+
"To" line](assets/chips/chips_hero.png)
1516

1617
**Contents**
1718

@@ -102,7 +103,8 @@ to a `ViewGroup` such as `RecyclerView`). A `ChipGroup` contains a set of
102103

103104
A `ChipGroup` rearranges chips across multiple rows by default.
104105

105-
!["A group of 6 chips."](assets/chips/chips_filter.png)
106+
!["6 grey "Filter" chips spread across 2 lines: "Filters" 1 and 3 selected and
107+
are darker grey and include checkmarks."](assets/chips/chips_filter.png)
106108

107109
```xml
108110
<com.google.android.material.chip.ChipGroup
@@ -119,7 +121,8 @@ A `ChipGroup` can also constrain its chips to a single row using the
119121
`app:singleLine` attribute. Using a single row may necessitate wrapping the
120122
`ChipGroup` with a `HorizontalScrollView`.
121123

122-
!["Chips in a single line."](assets/chips/chips_singleline.png)
124+
!["Single line of grey chips: chips 1, 2, and 3 are fully visible, chip 4 is
125+
partly visible"](assets/chips/chips_singleline.png)
123126

124127
```xml
125128
<HorizontalScrollView
@@ -147,7 +150,7 @@ for lower amounts._
147150
The following image shows a group of chips with
148151
`app:chipSpacingHorizontal="42dp"`.
149152

150-
!["A group of chips with horizontal spacing."](assets/chips/chips_spacing.png)
153+
!["6 grey chips in 2 rows with 42dp horizontal spacing"](assets/chips/chips_spacing.png)
151154

152155
#### Multiple exclusion scope
153156

@@ -204,7 +207,7 @@ For example, consider an editable e-mail address field that converts addresses
204207
to chips as they are typed and validated. We can combine `ChipDrawable` with
205208
spans to add a chip to an `EditText`:
206209

207-
!["A standalone chip insite a text field."](assets/chips/chips_standalone.png)
210+
!["Standalone chip inside a text field"](assets/chips/chips_standalone.png)
208211

209212
```kt
210213
chip.setBounds(0, 0, chip.intrinsicWidth, chip.intrinsicHeight)
@@ -302,7 +305,8 @@ the chips are checked.
302305

303306
The following example shows four choice chips.
304307

305-
!["Choice chips with texts Choice 1 to 4 and the first one selected."](assets/chips/chips_choice.png)
308+
!["4 choice chips, Choice 1 is selected with purple fill, Choices 2-4 unselected
309+
with grey fill"](assets/chips/chips_choice.png)
306310

307311
In the layout:
308312

@@ -346,7 +350,8 @@ good alternative to toggle buttons or checkboxes.
346350

347351
The following example shows six filter chips.
348352

349-
!["Filter chips with texts Filter 1 to 6, the first and third selected."](assets/chips/chips_filter.png)
353+
!["6 grey "Filter" chips spread across 2 lines: "Filters" 1 and 3 selected and
354+
are darker grey and include checkmarks."](assets/chips/chips_filter.png)
350355

351356
In the layout:
352357

@@ -557,7 +562,7 @@ API and source code:
557562

558563
The following example shows chips with Material Theming.
559564

560-
!["Chip theming example with pink and brown colors."](assets/chips/chips_theming.png)
565+
!["3 chips with brown text and icons, white fill, and pink outlines"](assets/chips/chips_theming.png)
561566

562567
#### Implementing chip theming
563568

docs/components/Switch.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ allow the user to select options.
1515
Switches toggle the state of a single setting on or off. They are the preferred
1616
way to adjust settings on mobile.
1717

18-
![Switch hero example for menu options](assets/switch/switch_hero.png)
18+
![White "Settings" menu with purple header and switches to turn on options, such
19+
as "Wi-fi" and "Bluetooth"](assets/switch/switch_hero.png)
1920

2021
**Contents**
2122

@@ -200,7 +201,7 @@ API and source code:
200201

201202
The following example shows a list of switches with Material Theming.
202203

203-
!["Switch theming with pink and brown colors"](assets/switch/switch_theming.png)
204+
!["5 switches with brown text: first switch is on and has pink thumb and track"](assets/switch/switch_theming.png)
204205

205206
#### Implementing switch theming
206207

0 commit comments

Comments
 (0)