From a321eca9d739b25a29dffe218782860d8b3ec183 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Fri, 13 Jun 2025 14:13:54 +0200 Subject: [PATCH] LibWeb: Change default `:focus-visible` outline to a solid accent color --- Libraries/LibWeb/Painting/BorderPainting.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/LibWeb/Painting/BorderPainting.cpp b/Libraries/LibWeb/Painting/BorderPainting.cpp index bfb4848891f..2529527647f 100644 --- a/Libraries/LibWeb/Painting/BorderPainting.cpp +++ b/Libraries/LibWeb/Painting/BorderPainting.cpp @@ -579,9 +579,9 @@ Optional borders_data_for_outline(Layout::Node const& layout_node, { CSS::LineStyle line_style; if (outline_style == CSS::OutlineStyle::Auto) { - // `auto` lets us do whatever we want for the outline. 2px of the link colour seems reasonable. - line_style = CSS::LineStyle::Dotted; - outline_color = CSS::CSSKeywordValue::create(CSS::Keyword::Linktext)->to_color(*static_cast(&layout_node)); + // `auto` lets us do whatever we want for the outline. 2px of the accent colour seems reasonable. + line_style = CSS::LineStyle::Solid; + outline_color = CSS::CSSKeywordValue::create(CSS::Keyword::Accentcolor)->to_color(*static_cast(&layout_node)); outline_width = 2; } else { line_style = CSS::keyword_to_line_style(CSS::to_keyword(outline_style)).value_or(CSS::LineStyle::None);