Skip to content

Commit

Permalink
Add underline to link in Tooltip example (#3279)
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Dutro <[email protected]>
  • Loading branch information
TylerJDev and camertron authored Jan 21, 2025
1 parent fa16aec commit a3a55cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion previews/primer/alpha/tooltip_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def tooltip_with_button(direction: :s, tooltip_text: "You can press a button")

# @label Tooltip with Primer::Beta::Link
def tooltip_with_link(direction: :s, tooltip_text: "You can press a button")
render(Primer::Beta::Link.new(href: "#link-with-tooltip", id: "link-with-tooltip")) do |component|
render(Primer::Beta::Link.new(href: "#link-with-tooltip", id: "link-with-tooltip", underline: true)) do |component|
component.with_tooltip(text: tooltip_text, direction: direction)
"Button"
end
Expand Down

0 comments on commit a3a55cf

Please sign in to comment.