Primeng: vertical alignment of p-steps component

Created on 11 Apr 2017  路  6Comments  路  Source: primefaces/primeng

[x] feature request

[In the present case] (https://www.primefaces.org/primeng/#/steps) there is no class to use p-steps in vertical alignment mode.
I think it will make the component more useful if there is such an option.

Sample of vertical steps component

new feature

Most helpful comment

i happened to look at it (going to need it soon), did a search and end up here. It is rather simple tho with a simple override:
Ether globally:

 .ui-steps-item {
  float:none !important;
}

or in component:

 :host /deep/ .ui-steps-item {
  float:none !important;
}

All 6 comments

+1 from my side. Also If we have more steps then it is good to have vertical alignment than horizontal.

i happened to look at it (going to need it soon), did a search and end up here. It is rather simple tho with a simple override:
Ether globally:

 .ui-steps-item {
  float:none !important;
}

or in component:

 :host /deep/ .ui-steps-item {
  float:none !important;
}

Sounds good.

with .ui-steps-item {
float:none !important;
}
how to get the horizontal line across steps to align vertically?
it remains horizontal in middle of vertical div

It seems interesting but now we have Timeline Component.

With PrimeNG 11, the previous "float: none" workaround doesn't seem to work anymore.
I managed to accomplish a vertical layout with the following CSS (inside a component):

:host ::ng-deep .p-steps-item {
  padding-bottom: 15px;
}

:host ::ng-deep .p-steps ul {
  display: block;
}

:host ::ng-deep .p-steps .p-steps-item:before {
  content: none;
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Faigjaz picture Faigjaz  路  3Comments

markgoho picture markgoho  路  3Comments

philly-vanilly picture philly-vanilly  路  3Comments

garethlewis picture garethlewis  路  3Comments

Helayxa picture Helayxa  路  3Comments