Improve last example on the PopoverComponent docs
* Improve last example on the PopoverComponent docs
This is part of the efforts to increase consistency with Primer CSS.
MODIFY
CHANGELOG.md
CHANGELOG.md
@@ -36,6 +36,10 @@ The category for changes related to documentation, testing and tooling. Also, fo
_Hector Garcia_
+- Improve last example on the PopoverComponent docs
+
+ _Hector Garcia_
+
### Bug Fixes
- Fix live reloading during local docs development.

MODIFY
app/components/primer/popover_component.rb
app/components/primer/popover_component.rb
@@ -88,20 +88,16 @@ module Primer
# <% end %>
# <% end %>
#
- # @example With HTML body
+ # @example With multiple elements in the body
# <%= render Primer::PopoverComponent.new do |component| %>
# <% component.heading do %>
# Activity feed
# <% end %>
# <% component.body(caret: :left) do %>
# <p>This is the Popover body.</p>
- # <div>
- # This is using HTML.
- # <ul>
- # <li>Thing #1</li>
- # <li>Thing #2</li>
- # </ul>
- # </div>
+ # <%= render Primer::ButtonComponent.new(type: :submit) do %>
+ # Got it!
+ # <% end %>
# <% end %>
# <% end %>
#

Improve last example on the PopoverComponent docs (#1005)

* Improve last example on the PopoverComponent docs

This is part of the efforts to increase consistency with Primer CSS.