mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
🐛 Stop passing tooltip-class to layout item numeric inputs (#12329)
The layout item min and max size inputs passed :tooltip-class to numeric-input*, which never reads that prop. It stayed in the rest props and reached the DOM <input>, so React warned about an unknown tooltipClass prop. The class never styled anything. Remove the prop from the four callers and drop the unused .tooltip-wrapper rule. Closes #12311 AI-assisted-by: claude-opus-5-5
This commit is contained in:
parent
ea45507ac8
commit
9ffd218915
@ -602,7 +602,6 @@
|
||||
:input-type :min-width
|
||||
:nillable true
|
||||
:applied-token applied-token-to-min-w
|
||||
:tooltip-class (stl/css :tooltip-wrapper)
|
||||
:value min-w}]
|
||||
|
||||
[:div {:class (stl/css :layout-item-min-w)
|
||||
@ -632,7 +631,6 @@
|
||||
:attr :layout-item-max-w
|
||||
:property (tr "workspace.options.layout-item.layout-item-max-w")
|
||||
:nillable true
|
||||
:tooltip-class (stl/css :tooltip-wrapper)
|
||||
:applied-token applied-token-to-max-w
|
||||
:value max-w}]
|
||||
|
||||
@ -663,7 +661,6 @@
|
||||
:attr :layout-item-min-h
|
||||
:property (tr "workspace.options.layout-item.layout-item-min-h")
|
||||
:nillable true
|
||||
:tooltip-class (stl/css :tooltip-wrapper)
|
||||
|
||||
:applied-token applied-token-to-min-h
|
||||
:value min-h}]
|
||||
@ -694,7 +691,6 @@
|
||||
:attr :layout-item-max-h
|
||||
:property (tr "workspace.options.layout-item.layout-item-max-h")
|
||||
:nillable true
|
||||
:tooltip-class (stl/css :tooltip-wrapper)
|
||||
:applied-token applied-token-to-max-h
|
||||
:value max-h}]
|
||||
|
||||
|
||||
@ -192,7 +192,3 @@
|
||||
.inputs-wrapper {
|
||||
grid-column: 1 / span 2;
|
||||
}
|
||||
|
||||
.tooltip-wrapper {
|
||||
inline-size: 100%;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user