Skip to content

Commit 918a765

Browse files
authored
Update live_title examples for consistent spacing (#3595)
The suffix should contain a space before the separator to render as expected. The example separators were different characters; update to be the same as used in the phx.new root template.
1 parent 65bdbc4 commit 918a765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/phoenix_component.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,13 +2068,13 @@ defmodule Phoenix.Component do
20682068
## Examples
20692069
20702070
```heex
2071-
<.live_title default="Welcome" prefix="MyApp ">
2071+
<.live_title default="Welcome" prefix="MyApp · ">
20722072
{assigns[:page_title]}
20732073
</.live_title>
20742074
```
20752075
20762076
```heex
2077-
<.live_title default="Welcome" suffix="- MyApp">
2077+
<.live_title default="Welcome" suffix=" · MyApp">
20782078
{assigns[:page_title]}
20792079
</.live_title>
20802080
```

0 commit comments

Comments
 (0)