Skip to content

Commit

Permalink
Update live_title examples for consistent spacing (#3595)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rhcarvalho authored Dec 23, 2024
1 parent 65bdbc4 commit 918a765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phoenix_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2068,13 +2068,13 @@ defmodule Phoenix.Component do
## Examples
```heex
<.live_title default="Welcome" prefix="MyApp ">
<.live_title default="Welcome" prefix="MyApp · ">
{assigns[:page_title]}
</.live_title>
```
```heex
<.live_title default="Welcome" suffix="- MyApp">
<.live_title default="Welcome" suffix=" · MyApp">
{assigns[:page_title]}
</.live_title>
```
Expand Down

0 comments on commit 918a765

Please sign in to comment.