Skip to content

Commit d5a3701

Browse files
afohrmanraajkumars
authored andcommitted
[Docs][Switch] Updated inaccurate anatomy diagram labels and a couple of other minor tweaks.
Resolves #3165. PiperOrigin-RevId: 501844880
1 parent 4ecba81 commit d5a3701

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/components/Switch.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ as "Wi-fi" and "Bluetooth"](assets/switch/switch_hero.png)
2727

2828
## Using switches
2929

30-
Before you can use Material switches, you need to add a dependency to the
30+
Before you can use Material switches, you need to add a dependency on the
3131
Material Components for Android library. For more information, go to the
3232
[Getting started](https://github.com/material-components/material-components-android/tree/master/docs/getting-started.md)
3333
page.
@@ -59,8 +59,8 @@ indicate its current state.
5959

6060
**Note:** Since version 1.7.0, the new `MaterialSwitch` class will replace the
6161
obsolete `SwitchMaterial` class. In most cases you should be able to just
62-
replace all `SwitchMaterial` class reference with `MaterialSwitch` to enjoy the
63-
default look and feel. Please refer to the following sections if you need to
62+
replace all `SwitchMaterial` class reference with `MaterialSwitch` to achieve
63+
the default look and feel. Please refer to the following sections if you need to
6464
customize the new styles.
6565

6666
**Note:** For the old `SwitchMaterial` documentation, please refer to
@@ -125,8 +125,8 @@ track:
125125

126126
![Switch anatomy diagram](assets/switch/switch_anatomy.png)
127127

128-
1. Thumb
129-
2. Track
128+
1. Track
129+
2. Thumb
130130
3. Icon (optional)
131131

132132
### Switch attributes
@@ -150,7 +150,7 @@ Element | Attribute | Related method(s)
150150
**Color** | `app:thumbIconTint` | `setThumbIconTintList`<br/>`getThumbIconTintList` | `?attr/colorSurfaceVariant` (unchecked)<br/>`?attr/colorOnPrimaryContainer` (checked)
151151

152152
You can add an optional icon to enhance the on/off indication of your custom
153-
switch by assiging `app:thumbIcon`. This icon will be centered and displayed on
153+
switch by assigning `app:thumbIcon`. This icon will be centered and displayed on
154154
top of the thumb drawable.
155155

156156
### Track attributes

0 commit comments

Comments
 (0)