Skip to content

Commit

Permalink
LibWeb: Set link cursor via the default CSS
Browse files Browse the repository at this point in the history
This removes the custom handling of cursor for the link element, which
also allows overriding the cursor on a link element via CSS
  • Loading branch information
ant1441 authored and awesomekling committed Feb 28, 2021
1 parent bedcd9c commit 53c4be9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Userland/Libraries/LibWeb/CSS/Default.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ html {
font-family: sans-serif;
}

a {
cursor: pointer;
}

head,
link,
meta,
Expand Down
1 change: 0 additions & 1 deletion Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ void OutOfProcessWebView::notify_server_did_request_scroll_into_view(Badge<WebCo

void OutOfProcessWebView::notify_server_did_hover_link(Badge<WebContentClient>, const URL& url)
{
set_override_cursor(Gfx::StandardCursor::Hand);
if (on_link_hover)
on_link_hover(url);
}
Expand Down

0 comments on commit 53c4be9

Please sign in to comment.