IS: Currently, the module assumes 6 steps for the progress bar. CSS assumes an item-width of 16%.

SHOULD: Based on the number of available elements, the design should fit the available space.

Comments

spiffl’s picture

see https://github.com/beatchristen/commerce_checkout_progress/pull/2/files

and attached patch issue-1945730-implement-variable-width.diff

spiffl’s picture

Status: Active » Needs review
nvahalik’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +sprint

Patch does not apply anymore.

Also, I'm not sure that placing elements in this way will look correct since a table will still have columns of uneven width. If you're wanting something equally spaced apart, your best bet may be to use a preprocess hook that sets classes or actual percentage directly, based on the actual number of columns.