mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
LibWeb: Change default :focus-visible
outline to a solid accent color
This commit is contained in:
parent
15c436b332
commit
a321eca9d7
Notes:
github-actions[bot]
2025-06-13 15:40:14 +00:00
Author: https://github.com/gmta
Commit: a321eca9d7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5074
1 changed files with 3 additions and 3 deletions
|
@ -579,9 +579,9 @@ Optional<BordersData> 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::NodeWithStyle const*>(&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::NodeWithStyle const*>(&layout_node));
|
||||
outline_width = 2;
|
||||
} else {
|
||||
line_style = CSS::keyword_to_line_style(CSS::to_keyword(outline_style)).value_or(CSS::LineStyle::None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue