Skip to content

Commit eb7afce

Browse files
author
Mike Thompson
committed
Merge remote-tracking branch 'origin/master' into feature/modern-theme-phase-2
2 parents a801b01 + a60f25d commit eb7afce

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
## 2.29.4 (Unreleased)
2020

21+
#### Added
22+
- `popover`: full `:parts` & `:theme` support for all five popover components (`popover-title`, `popover-border`, `popover-content-wrapper`, `popover-anchor-wrapper`, `popover-tooltip`). Closes the gap called out in the 2.29.0 changelog ("Full `:parts` & `:theme` support for most components (excluding `popover`, `v-table` and `simple-v-table`)"). The classic look is preserved verbatim — every legacy CSS class (`rc-popover-border`, `popover`, `rc-popover-title`, `rc-popover-arrow`, `rc-popover-content`, `rc-popover-anchor-wrapper`, `rc-point-wrapper`, `rc-popover-point`, `rc-popover-tooltip`, etc.) is still applied via `bootstrap` theme methods. Form-3 lifecycle behaviour (refs, `:component-did-mount`, `:component-did-update`, position-optimization atoms) is unchanged; `theme/comp` is composed once at mount time per component instance.
23+
2124
#### Fixed
2225
- `popover-anchor-wrapper`: `:popover` argument using positional-args calling style `[popover-fn arg1 arg2 ...]` no longer breaks `:showing-injected?`/`:position-injected` injection. Previously the non-keyword branch wrapped the call as a single map, causing the receiving fn's `[a b & {:keys [...]}]` destructure to bind `a` to the entire map and produce nil kwargs — visible as a 💥 in the "Complex Popover (dialog box)" demo. Map-style invocation `[popover-fn {props}]` continues to work. [#367](https://github.com/day8/re-com/issues/367)
2326
- `re-com.debug`: validation logger now reports `:validate-fn-return` problems with the validator's actual error message instead of an unhelpful "Unknown problem reported". This affected any validator built on `validate-arg-against-set` (e.g. `position?`, `justify-style?`, `alert-type?`) when a value didn't match the expected set — the error string was being computed but never shown. [#368](https://github.com/day8/re-com/issues/368)

demo/re_demo/popovers.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
[:tr
106106
[:td border-style-nw (indent-text 2 "[:div]")]
107107
[:td border-style-nw "rc-popover-point"]
108-
[:td border-style (code-text ":popover-point")]
108+
[:td border-style (code-text ":point")]
109109
[:td border-style "The point (width/height 0) which is placed at the center of the relevant side of the anchor, based on " (code-text ":position") " arg."]]
110110
[:tr
111111
[:td border-style-nw (indent-text 3 (highlight-text ":popover"))]
@@ -130,12 +130,12 @@
130130
[:tr
131131
[:td border-style-nw (indent-text 5 "[popover-title]")]
132132
[:td border-style-nw "popover-title"]
133-
[:td border-style (code-text ":title")]
133+
[:td border-style (code-text ":title-bar")]
134134
[:td border-style "Optional based on " (code-text ":title") " arg. Adds a close button if " (code-text ":on-cancel") " arg is set."]]
135135
[:tr
136136
[:td border-style-nw (indent-text 5 "[:div]")]
137137
[:td border-style-nw "popover-content"]
138-
[:td border-style ""]
138+
[:td border-style (code-text ":content")]
139139
[:td border-style "Exists to override the default popover padding."]]
140140
[:tr
141141
[:td border-style-nw (indent-text 6 (highlight-text ":body"))]

0 commit comments

Comments
 (0)