Skip to content

Commit 65eeb65

Browse files
committed
docs: fix references to rounded borders
Fix 'rounded' border references in docs to 'round'.
1 parent dc71564 commit 65eeb65

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/guide/CSS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Consequently, a `Static` selector will also style the button because the `Alert`
219219
```css
220220
Static {
221221
background: blue;
222-
border: rounded green;
222+
border: round green;
223223
}
224224
```
225225

@@ -230,7 +230,7 @@ Static {
230230
You may have noticed that the `border` rule exists in both `Static` and `Alert`.
231231
When this happens, Textual will use the most recently defined sub-class.
232232
So `Alert` wins over `Static`, and `Static` wins over `Widget` (the base class of all widgets).
233-
Hence if both rules were in a stylesheet, `Alert` widgets would have a "solid red" border and not a "rounded green" border.
233+
Hence if both rules were in a stylesheet, `Alert` widgets would have a "solid red" border and not a "round green" border.
234234

235235
### ID selector
236236

src/textual/css/_style_properties.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def __get__(
299299
300300
Returns:
301301
A ``tuple[EdgeType, Style]`` containing the string type of the box and
302-
its style. Example types are "rounded", "solid", and "dashed".
302+
its style. Example types are "round", "solid", and "dashed".
303303
"""
304304
return obj.get_rule(self.name) or ("", self._default_color) # type: ignore[return-value]
305305

src/textual/css/styles.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -311,34 +311,34 @@ class StylesBase:
311311
"""If `relative` offset is applied to widgets current position, if `absolute` it is applied to (0, 0)."""
312312

313313
border = BorderProperty(layout=True)
314-
"""Set the border of the widget e.g. ("rounded", "green") or "none"."""
314+
"""Set the border of the widget e.g. ("round", "green") or "none"."""
315315

316316
border_top = BoxProperty(Color(0, 255, 0))
317-
"""Set the top border of the widget e.g. ("rounded", "green") or "none"."""
317+
"""Set the top border of the widget e.g. ("round", "green") or "none"."""
318318
border_right = BoxProperty(Color(0, 255, 0))
319-
"""Set the right border of the widget e.g. ("rounded", "green") or "none"."""
319+
"""Set the right border of the widget e.g. ("round", "green") or "none"."""
320320
border_bottom = BoxProperty(Color(0, 255, 0))
321-
"""Set the bottom border of the widget e.g. ("rounded", "green") or "none"."""
321+
"""Set the bottom border of the widget e.g. ("round", "green") or "none"."""
322322
border_left = BoxProperty(Color(0, 255, 0))
323-
"""Set the left border of the widget e.g. ("rounded", "green") or "none"."""
323+
"""Set the left border of the widget e.g. ("round", "green") or "none"."""
324324

325325
border_title_align = StringEnumProperty(VALID_ALIGN_HORIZONTAL, "left")
326326
"""The alignment of the border title text."""
327327
border_subtitle_align = StringEnumProperty(VALID_ALIGN_HORIZONTAL, "right")
328328
"""The alignment of the border subtitle text."""
329329

330330
outline = BorderProperty(layout=False)
331-
"""Set the outline of the widget e.g. ("rounded", "green") or "none".
331+
"""Set the outline of the widget e.g. ("round", "green") or "none".
332332
The outline is drawn *on top* of the widget, rather than around it like border.
333333
"""
334334
outline_top = BoxProperty(Color(0, 255, 0))
335-
"""Set the top outline of the widget e.g. ("rounded", "green") or "none"."""
335+
"""Set the top outline of the widget e.g. ("round", "green") or "none"."""
336336
outline_right = BoxProperty(Color(0, 255, 0))
337-
"""Set the right outline of the widget e.g. ("rounded", "green") or "none"."""
337+
"""Set the right outline of the widget e.g. ("round", "green") or "none"."""
338338
outline_bottom = BoxProperty(Color(0, 255, 0))
339-
"""Set the bottom outline of the widget e.g. ("rounded", "green") or "none"."""
339+
"""Set the bottom outline of the widget e.g. ("round", "green") or "none"."""
340340
outline_left = BoxProperty(Color(0, 255, 0))
341-
"""Set the left outline of the widget e.g. ("rounded", "green") or "none"."""
341+
"""Set the left outline of the widget e.g. ("round", "green") or "none"."""
342342

343343
keyline = KeylineProperty()
344344
"""Keyline parameters."""

0 commit comments

Comments
 (0)