mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
LibWeb: Make SelectElement arrow use text color
This commit is contained in:
parent
1843a54df7
commit
3fbbe9d6a5
Notes:
github-actions[bot]
2025-02-20 19:07:26 +00:00
Author: https://github.com/Psychpsyo
Commit: 3fbbe9d6a5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3648
Reviewed-by: https://github.com/trflynn89
3 changed files with 18 additions and 2 deletions
|
@ -606,8 +606,7 @@ void HTMLSelectElement::create_shadow_tree_if_needed()
|
|||
MUST(border->append_child(*m_inner_text_element));
|
||||
|
||||
// FIXME: Find better way to add chevron icon
|
||||
auto chevron_fill_color = document().page().palette().base_text();
|
||||
auto chevron_svg = MUST(String::formatted("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"{}\" d=\"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z\"/></svg>", chevron_fill_color));
|
||||
static constexpr auto chevron_svg = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"currentcolor\" d=\"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z\"/></svg>"sv;
|
||||
|
||||
m_chevron_icon_element = DOM::create_element(document(), HTML::TagNames::div, Namespace::HTML).release_value_but_fixme_should_propagate_errors();
|
||||
MUST(m_chevron_icon_element->set_attribute(HTML::AttributeNames::style, R"~~~(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue