From e0d8d66e07b4f90713161d5473e6de9236e70c37 Mon Sep 17 00:00:00 2001 From: Tyler Jones Date: Fri, 17 Jan 2025 18:15:16 +0000 Subject: [PATCH] Add underline to link in example to fix AXE issue --- previews/primer/alpha/tooltip_preview.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/previews/primer/alpha/tooltip_preview.rb b/previews/primer/alpha/tooltip_preview.rb index 7f1f77592c..a6f9fcc108 100644 --- a/previews/primer/alpha/tooltip_preview.rb +++ b/previews/primer/alpha/tooltip_preview.rb @@ -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