Summary
Two related documentation gaps on the _button._styleBeforeCompletion and _button._styleAfterClick properties:
- README does not mention that
_isFullWidth: true force-hides the Trickle button after completion regardless of _styleAfterClick. Behaviour is intentional (prevents stacked absolutely-positioned buttons) but undocumented, leading to confusion when authors set _styleAfterClick: "visible" or "disabled" and see the button disappear anyway.
- Schemas lack adequate help/description text for these two properties:
- Legacy
properties.schema help text is incomplete and does not include default values.
- Modern
schema/article.schema.json and schema/block.schema.json have no description field at all.
Source
js/TrickleButtonModel.js:195:
// Force button to be hidden after completion if _isFullWidth, otherwise absolutely positioned buttons will stack
const isButtonVisibleAfterCompletion = (trickleConfig._button._styleAfterClick !== 'hidden') && !trickleConfig._button._isFullWidth;
Suggested fix
- README: add a note to the
_styleAfterClick entry covering the _isFullWidth override.
- Legacy and modern schemas: add short tooltip-friendly help/description text for both properties, including default value and the
_isFullWidth interaction.
Reproduction
- Set
_trickle._button._isFullWidth: true
- Set
_trickle._button._styleAfterClick: "visible" (or "disabled")
- Complete the step. Button hides instead of remaining visible/disabled.
Posted via collaboration with Claude Code
Summary
Two related documentation gaps on the
_button._styleBeforeCompletionand_button._styleAfterClickproperties:_isFullWidth: trueforce-hides the Trickle button after completion regardless of_styleAfterClick. Behaviour is intentional (prevents stacked absolutely-positioned buttons) but undocumented, leading to confusion when authors set_styleAfterClick: "visible"or"disabled"and see the button disappear anyway.properties.schemahelptext is incomplete and does not include default values.schema/article.schema.jsonandschema/block.schema.jsonhave nodescriptionfield at all.Source
js/TrickleButtonModel.js:195:Suggested fix
_styleAfterClickentry covering the_isFullWidthoverride._isFullWidthinteraction.Reproduction
_trickle._button._isFullWidth: true_trickle._button._styleAfterClick: "visible"(or"disabled")Posted via collaboration with Claude Code