Skip to content

Commit

Permalink
Use base_style for checkboxs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Nov 1, 2023
1 parent 28a00e1 commit 403d2ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn checkbox(checked: crate::reactive::ReadSignal<bool>) -> Svg {
let svg_str = move || if checked.get() { CHECKBOX_SVG } else { "" }.to_string();

svg(svg_str)
.style(|base| {
.base_style(|base| {

Check warning on line 43 in src/views/svg.rs

View check run for this annotation

Codecov / codecov/patch

src/views/svg.rs#L43

Added line #L43 was not covered by tests
base.width(20.)
.height(20.)
.border_color(Color::BLACK)
Expand Down

0 comments on commit 403d2ec

Please sign in to comment.