Skip to content

Commit 2a99685

Browse files
crisbetowagnermaciel
authored andcommitted
docs: resolve some docs typos (#22514)
Fixes some typos for `the the` and `takes takes`. Fixes #22327. (cherry picked from commit 1678df9)
1 parent 9e68bf8 commit 2a99685

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

.circleci/env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ cp "${projectDir}/.circleci/bazel.linux.rc" "$HOME/.bazelrc";
4646
####################################################################################################
4747
####################################################################################################
4848
## Source `$BASH_ENV` to make the variables available immediately. ##
49-
## ***NOTE: This must remain the the last action in this script*** ##
49+
## ***NOTE: This must remain the last action in this script*** ##
5050
####################################################################################################
5151
####################################################################################################
5252
source $BASH_ENV;

guides/theming-your-components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ have a config specified.
163163
@mixin color($theme) {
164164
// Get the color config from the theme.
165165
$color-config: mat.get-color-config($theme);
166-
166+
167167
// Get the primary color palette from the color-config.
168168
$primary-palette: map.get($color-config, 'primary');
169-
169+
170170
.my-carousel-button {
171171
// Read the 500 hue from the primary color palette.
172172
color: mat.get-color-from-palette($primary-palette, 500);
@@ -198,7 +198,7 @@ have a config specified.
198198
### Step 4: Include the theme mixin in your application
199199

200200
Now that you've defined the carousel component's theme mixin, you can include this mixin along with
201-
the the other theme mixins in your application.
201+
the other theme mixins in your application.
202202

203203
```scss
204204
@use '~@angular/material' as mat;

guides/typography.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ table below.
6363

6464
You can define a typography level with the `define-typography-config` Sass function. This function
6565
accepts, in order, CSS values for `font-size`, `line-height`, `font-weight`, `font-family`, and
66-
`letter-spacing`. You can also specify the parameters by name, as demonstrated in the example below.
66+
`letter-spacing`. You can also specify the parameters by name, as demonstrated in the example below.
6767

6868
```scss
6969
@use '~@angular/material' as mat;
@@ -75,7 +75,7 @@ $my-custom-level: mat.define-typography-level(
7575
$line-height: 1,
7676
$letter-spacing: normal,
7777
);
78-
```
78+
```
7979

8080
## Typography config
8181

@@ -121,7 +121,7 @@ In addition to the `core` mixin, you can specify your typography config when inc
121121
mixin, as described in the [theming guide][theming-system]. Because the `core` mixin always emits
122122
typography styles, specifying a typography config to a theme mixin results in duplicate typography
123123
CSS. You should only provide a typography config when applying your theme if you need to specify
124-
multiple typography styles that are conditionally applied based on your application's behavior.
124+
multiple typography styles that are conditionally applied based on your application's behavior.
125125

126126
The following example shows a typical theme definition and a "kids theme" that only applies when
127127
the `".kids-theme"` CSS class is present. You can [see the theming guide for more guidance on
@@ -151,15 +151,15 @@ $my-theme: mat.define-light-theme((
151151
// Specify "Comic Sans" as the default font family for all levels.
152152
$font-family: 'Comic Sans',
153153
);
154-
154+
155155
$kids-theme: mat.define-light-theme((
156156
color: (
157157
primary: $my-primary,
158158
accent: $my-accent,
159159
),
160160
typography: $kids-typography,
161161
));
162-
162+
163163
@include mat.all-component-themes($kids-theme);
164164
}
165165
```
@@ -185,7 +185,7 @@ $kids-typography: mat.define-typography-config(
185185
In addition to styles shared between components, the `core` mixin includes CSS classes for styling
186186
your application. These CSS classes correspond to the typography levels in your typography config.
187187
This mixin also emits styles for native header elements scoped within the `.mat-typography` CSS
188-
class. The table below lists the the CSS classes emitted and the native elements styled.
188+
class. The table below lists the CSS classes emitted and the native elements styled.
189189

190190
| CSS class | Level name | Native elements |
191191
|-------------------------------------|----------------|-----------------|
@@ -218,14 +218,14 @@ The following example demonstrates usage of the typography styles emitted by the
218218
<body>
219219
<!-- This header will *not* be styled because it is outside `.mat-typography` -->
220220
<h1>Top header</h1>
221-
221+
222222
<!-- This paragraph will be styled as `body-1` via the `.mat-body` CSS class applied -->
223223
<p class="mat-body">Introductory text</p>
224-
224+
225225
<div class="mat-typography">
226226
<!-- This header will be styled as `title` because it is inside `.mat-typography` -->
227227
<h2>Inner header</h2>
228-
228+
229229
<!-- This paragraph will be styled as `body-1` because it is inside `.mat-typography` -->
230230
<p>Some inner text</p>
231231
</div>

src/cdk-experimental/menu/menu-bar.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ describe('MenuBar', () => {
743743
grabElementsForTesting();
744744
}
745745

746-
/** set focus the the MenuBar and run change detection. */
746+
/** set focus the MenuBar and run change detection. */
747747
function focusMenuBar() {
748748
dispatchKeyboardEvent(document, 'keydown', TAB);
749749
nativeMenuBar.focus();

src/cdk-experimental/menu/menu-item-radio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {CDK_MENU, Menu} from './menu-interface';
1515
import {MENU_AIM, MenuAim} from './menu-aim';
1616

1717
/**
18-
* A directive providing behavior for the the "menuitemradio" ARIA role, which behaves similarly to
18+
* A directive providing behavior for the "menuitemradio" ARIA role, which behaves similarly to
1919
* a conventional radio-button. Any sibling `CdkMenuItemRadio` instances within the same `CdkMenu`
2020
* or `CdkMenuGroup` comprise a radio group with unique selection enforced.
2121
*/

src/components-examples/material/button-toggle/button-toggle-harness/button-toggle-harness-example.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('ButtonToggleHarnessExample', () => {
3232
expect(groups.length).toBe(1);
3333
});
3434

35-
it('should load the the toggles inside the group', async () => {
35+
it('should load the toggles inside the group', async () => {
3636
const group = await loader.getHarness(MatButtonToggleGroupHarness);
3737
const toggles = await group.getToggles();
3838
expect(toggles.length).toBe(2);

src/google-maps/map-directions-renderer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The `MapDirectionsRenderer` component wraps the [`google.maps.DirectionsRenderer` class](https://developers.google.com/maps/documentation/javascript/reference/directions#DirectionsRenderer) from the Google Maps JavaScript API. This can easily be used with the `MapDirectionsService` that wraps [`google.maps.DirectionsService`](https://developers.google.com/maps/documentation/javascript/reference/directions#DirectionsService) which is designed to be used with Angular by returning an `Observable` response and works inside the Angular Zone.
44

5-
The `MapDirectionsService`, like the `google.maps.DirectionsService`, has a single method, `route`. Normally, the `google.maps.DirectionsService` takes two arguments, a `google.maps.DirectionsRequest` and a callback that takes the `google.maps.DirectionsResult` and `google.maps.DirectionsStatus` as arguments. The `MapDirectionsService` route method takes takes the `google.maps.DirectionsRequest` as the single argument, and returns an `Observable` of a `MapDirectionsResponse`, which is an interface defined as follows:
5+
The `MapDirectionsService`, like the `google.maps.DirectionsService`, has a single method, `route`. Normally, the `google.maps.DirectionsService` takes two arguments, a `google.maps.DirectionsRequest` and a callback that takes the `google.maps.DirectionsResult` and `google.maps.DirectionsStatus` as arguments. The `MapDirectionsService` route method takes the `google.maps.DirectionsRequest` as the single argument, and returns an `Observable` of a `MapDirectionsResponse`, which is an interface defined as follows:
66

77
```typescript
88
export interface MapDirectionsResponse {

src/google-maps/map-geocoder/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The `MapGeocoder`, like the `google.maps.Geocoder`, has a single method, `geocode`. Normally, the
44
`google.maps.Geocoder` takes two arguments, a `google.maps.GeocoderRequest` and a callback that
55
takes the `google.maps.GeocoderResult` and `google.maps.GeocoderStatus` as arguments.
6-
The `MapGeocoder.geocode` method takes takes the `google.maps.GeocoderRequest` as the single
6+
The `MapGeocoder.geocode` method takes the `google.maps.GeocoderRequest` as the single
77
argument, and returns an `Observable` of a `MapGeocoderResponse`, which is an interface defined as
88
follows:
99

src/material/button-toggle/testing/button-toggle-group-shared.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function runHarnessTests(
2828
expect(groups.length).toBe(1);
2929
});
3030

31-
it('should load the the toggles inside the group', async () => {
31+
it('should load the toggles inside the group', async () => {
3232
const group = await loader.getHarness(buttonToggleGroupHarness);
3333
const toggles = await group.getToggles();
3434
expect(toggles.length).toBe(2);

0 commit comments

Comments
 (0)