Skip to content

Commit

Permalink
improve icon colour
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 25, 2023
1 parent 103d4e9 commit 7df1e9c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,15 @@ pub fn Loader(cx: Scope) -> Element {

#[component]
pub fn LoaderIcon(cx: Scope, loading: bool) -> Element {
let cls = if *loading { "animate-spin" } else { "" };
let cls = if *loading {
"animate-spin text-base-800"
} else {
"text-primary-700 hover:text-primary-500"
};
render! {
div { class: cls,
svg {
class: "h-6 w-6 scale-x-[-1] text-primary-600 hover:text-primary-500",
class: "h-6 w-6 scale-x-[-1]",
xmlns: "http://www.w3.org/2000/svg",
view_box: "0 0 24 24",
fill: "none",
Expand Down

0 comments on commit 7df1e9c

Please sign in to comment.