Skip to content

Commit 311b35f

Browse files
author
Rafael J. Staib
committed
Add clearfix to steps, content & actions wrapper
1 parent 879967b commit 311b35f

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

build/jquery.steps.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ function render(wizard, options, state)
614614
var wrapperTemplate = "<{0} class=\"{1}\">{2}</{0}>",
615615
orientation = getValidEnumValue(stepsOrientation, options.stepsOrientation),
616616
verticalCssClass = (orientation === stepsOrientation.vertical) ? " vertical" : "",
617-
contentWrapper = $(format(wrapperTemplate, options.contentContainerTag, "content clearfix", wizard.html())),
618-
stepsWrapper = $(format(wrapperTemplate, options.stepsContainerTag, "steps clearfix", "<ul role=\"tablist\"></ul>")),
617+
contentWrapper = $(format(wrapperTemplate, options.contentContainerTag, "content " + options.clearFixCssClass, wizard.html())),
618+
stepsWrapper = $(format(wrapperTemplate, options.stepsContainerTag, "steps " + options.clearFixCssClass, "<ul role=\"tablist\"></ul>")),
619619
stepTitles = contentWrapper.children(options.headerTag),
620620
stepContents = contentWrapper.children(options.bodyTag);
621621

@@ -655,7 +655,7 @@ function renderPagination(wizard, options, state)
655655
{
656656
if (options.enablePagination)
657657
{
658-
var pagination = "<{0} class=\"actions clearfix\"><ul role=\"menu\" aria-label=\"{1}\">{2}</ul></{0}>",
658+
var pagination = "<{0} class=\"actions {1}\"><ul role=\"menu\" aria-label=\"{2}\">{3}</ul></{0}>",
659659
buttonTemplate = "<li><a href=\"#{0}\" role=\"menuitem\">{1}</a></li>",
660660
buttons = "";
661661

@@ -671,7 +671,8 @@ function renderPagination(wizard, options, state)
671671
buttons += format(buttonTemplate, "finish", options.labels.finish);
672672
}
673673

674-
wizard.append(format(pagination, options.actionContainerTag, options.labels.pagination, buttons));
674+
wizard.append(format(pagination, options.actionContainerTag, options.clearFixCssClass,
675+
options.labels.pagination, buttons));
675676

676677
refreshPagination(wizard, options, state);
677678
loadAsyncContent(wizard, options, state);

0 commit comments

Comments
 (0)