Skip to content

[Feature request] Add highlight padding option #47

@codemunkie15

Description

@codemunkie15

Is it possible to add an option to specify an amount of padding on the highlight? Currently the highlight uses the bounds of the element but I would like to add a small gap so the highlight is bigger than the element.

Something like this should do it?

var padding = step.backdropOptions.highlightPadding;
var offset = $(step.element).offset();
offset.top -= padding;
offset.left -= padding;
$(DOMID_HIGHLIGHT).width($(step.element).outerWidth() + (padding * 2)).height($(step.element).outerHeight() + (padding * 2)).offset(offset);

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions