Skip to content

Commit 46a300e

Browse files
authored
Merge pull request #4942 from TomJGooding/docs-fix-typos-and-spelling
docs: fix typos and spelling
2 parents 376cf0f + 2b64b6e commit 46a300e

25 files changed

+43
-43
lines changed

docs/examples/guide/css/nesting02.tcss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
padding: 1 2;
1010
margin: 1 2;
1111
text-align: center;
12-
border: heavy $panel;
12+
border: heavy $panel;
1313

1414
/* Style the Yes button */
1515
&.affirmative {
16-
border: heavy $success;
16+
border: heavy $success;
1717
}
1818

1919
/* Style the No button */

docs/examples/guide/reactivity/set_reactive01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class NameApp(App):
4949
CSS = """
5050
Screen {
5151
align: center middle;
52-
}
52+
}
5353
"""
5454
greeting_no: var[int] = var(0)
5555
BINDINGS = [("space", "greeting")]

docs/examples/guide/reactivity/set_reactive02.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class NameApp(App):
4949
CSS = """
5050
Screen {
5151
align: center middle;
52-
}
52+
}
5353
"""
5454
greeting_no: var[int] = var(0)
5555
BINDINGS = [("space", "greeting")]
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
QuestionScreen {
22
layout: grid;
3-
grid-size: 2 2;
3+
grid-size: 2 2;
44
align: center bottom;
55
}
66

77
QuestionScreen > Label {
8-
margin: 1;
8+
margin: 1;
99
text-align: center;
10-
column-span: 2;
10+
column-span: 2;
1111
width: 1fr;
1212
}
1313

1414
QuestionScreen Button {
15-
margin: 2;
16-
width: 1fr;
15+
margin: 2;
16+
width: 1fr;
1717
}

docs/examples/styles/hatch.tcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.hatch {
22
height: 1fr;
33
border: solid $secondary;
4-
4+
55
&.cross {
66
hatch: cross $success;
77
}

docs/examples/styles/keyline.tcss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ Grid {
55
keyline: heavy green;
66
}
77
Placeholder {
8-
height: 1fr;
8+
height: 1fr;
99
}
1010
.hidden {
1111
visibility: hidden;
12-
}
12+
}
1313
#foo {
1414
column-span: 2;
1515
}
1616
#bar {
17-
row-span: 2;
17+
row-span: 2;
1818
}
1919
#baz {
2020
column-span:3;

docs/guide/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Textual uses the following scheme to map messages classes on to a Python method.
157157

158158
Messages have a namespace if they are defined as a child class of a Widget.
159159
The namespace is the name of the parent class.
160-
For instance, the builtin `Input` class defines it's `Changed` message as follow:
160+
For instance, the builtin `Input` class defines its `Changed` message as follows:
161161

162162
```python
163163
class Input(Widget):

docs/guide/layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ As mentioned earlier, widgets expand to fill the _width_ of their parent contain
105105
They do not, however, expand to fill the container's height.
106106
Thus, we need explicitly assign `height: 100%` to achieve this.
107107

108-
A consequence of this "horizontal growth" behaviour is that if we remove the width restriction from the above example (by deleting `width: 1fr;`), each child widget will grow to fit the width of the screen,
108+
A consequence of this "horizontal growth" behavior is that if we remove the width restriction from the above example (by deleting `width: 1fr;`), each child widget will grow to fit the width of the screen,
109109
and only the first widget will be visible.
110110
The other two widgets in our layout are offscreen, to the right-hand side of the screen.
111111
In the case of `horizontal` layout, Textual will _not_ automatically add a scrollbar.

docs/guide/reactivity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ The color is parsed in `on_input_submitted` and assigned to `self.color`. Becaus
200200

201201
Textual only calls watch methods if the value of a reactive attribute _changes_.
202202
If the newly assigned value is the same as the previous value, the watch method is not called.
203-
You can override this behaviour by passing `always_update=True` to `reactive`.
203+
You can override this behavior by passing `always_update=True` to `reactive`.
204204

205205

206206
### Dynamically watching reactive attributes

docs/styles/links/link_background_hover.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If not provided, a Textual action link will have `link-background-hover` set to
2020

2121
## Example
2222

23-
The example below shows some links that have their background colour changed when the mouse moves over it and it shows that there is a default color for `link-background-hover`.
23+
The example below shows some links that have their background color changed when the mouse moves over it and it shows that there is a default color for `link-background-hover`.
2424

2525
It also shows that `link-background-hover` does not affect hyperlinks.
2626

0 commit comments

Comments
 (0)