File tree 3 files changed +16
-1
lines changed
tests/analysis_tests/tests/src/expected
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 12
12
13
13
# 12.0.0-alpha.10 (Unreleased)
14
14
15
+ #### :rocket : New Feature
16
+
17
+ - Add popover attributes to JsxDOM.domProps. https://github.com/rescript-lang/rescript/pull/7317
18
+
15
19
#### :house : Internal
16
20
17
21
- Clean up legacy tags handling. https://github.com/rescript-lang/rescript/pull/7309
Original file line number Diff line number Diff line change 24
24
25
25
type style = JsxDOMStyle .t
26
26
type domRef
27
+ /**
28
+ [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover)
29
+ */
30
+ type popover = | @as ("auto" ) Auto | @as ("manual" ) Manual | @as ("hint" ) Hint
31
+ /**
32
+ [Read more on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#popovertargetaction)
33
+ */
34
+ type popoverTargetAction = | @as ("toggle" ) Toggle | @as ("show" ) Show | @as ("hide" ) Hide
27
35
28
36
/*
29
37
This list isn't exhaustive. We'll add more as we go.
@@ -146,6 +154,9 @@ type domProps = {
146
154
hidden ?: bool ,
147
155
id ?: string ,
148
156
lang ?: string ,
157
+ popover ?: popover ,
158
+ popoverTarget ?: string ,
159
+ popoverTargetAction ?: popoverTargetAction ,
149
160
role ?: string /* ARIA role */ ,
150
161
style ?: style ,
151
162
spellCheck ?: bool ,
You can’t perform that action at this time.
0 commit comments