Skip to content

Commit

Permalink
Use alert-circle for input-text error state, not spinner
Browse files Browse the repository at this point in the history
Fixes #325
  • Loading branch information
kimo-k committed Nov 23, 2023
1 parent 1812b2d commit bf6ec13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#### Fixed

- Selected tabs & radio buttons no longer trigger their on-change handler (#333)
- Use alert-circle for input-text error state, not spinner (#325)

## 2.13.2 (2021-02-24)

Expand Down
4 changes: 2 additions & 2 deletions src/re_com/input_text.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
true)))}
attr)]]
(when (and status-icon? status)
(let [icon-class (case status :success "zmdi-check-circle" :warning "zmdi-alert-triangle" :error "zmdi-alert-circle zmdi-spinner" :validating "zmdi-hc-spin zmdi-rotate-right zmdi-spinner")]
(let [icon-class (case status :success "zmdi-check-circle" :warning "zmdi-alert-triangle" :error "zmdi-alert-circle" :validating "zmdi-hc-spin zmdi-rotate-right zmdi-spinner")]
(if status-tooltip
[popover-tooltip
:src (at)
Expand Down Expand Up @@ -210,4 +210,4 @@

(defn input-textarea
[& args]
(apply input-text-base :input-type :textarea :debug-as (reflect-current-component) args))
(apply input-text-base :input-type :textarea :debug-as (reflect-current-component) args))

0 comments on commit bf6ec13

Please sign in to comment.