bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

.divider-vertical

Open peteruhnak opened this issue 13 years ago • 54 comments

Hi, has the .divider-vertical for navbars been dropped from bootstrap 3, or is it just a feature overlook? I don't see it in neither docs nor code.

peteruhnak avatar Aug 14 '13 15:08 peteruhnak

It's been dropped.

mdo avatar Aug 14 '13 16:08 mdo

It is very useful! I wonder what was the reason it was dropped... It was not a good practice or something else?

amejiarosario avatar Dec 04 '13 14:12 amejiarosario

+1 to return vertical divider back.

sirex avatar Dec 08 '13 11:12 sirex

+1 really don't understand why this was dropped without a reasonable alteranative.

FreeApophis avatar Dec 10 '13 16:12 FreeApophis

@mdo I can't seem to find a statement of the reason why we dropped it?

cvrebert avatar Dec 10 '13 19:12 cvrebert

+1 on bringing this back!

Jauny avatar Dec 10 '13 20:12 Jauny

To be honest, a 1px vertical line didn't seem like something we really needed to create for the masses. In many cases, adding left and right borders to the nav links is the best bet. At other times rolling something completely custom makes more sense given a project's style.

I'm still against re-adding it at this point.

mdo avatar Dec 11 '13 05:12 mdo

Sure, it is not a necessity, however since the vertical line needs to become a horizontal line when it is collapsing to the mobile interface, it is at least not a trivial thing. And the much more trivial "divider" for the drop down is still there.

If the divider could be more general and just adapts to be a vertical divider would be a simple option.

For consistency in the navigation there should be also the possibility to divide in a vertical way, not only horizontally.

FreeApophis avatar Dec 11 '13 16:12 FreeApophis

+1 I agree, this would be good to have it back if possible

mjbates7 avatar Dec 12 '13 10:12 mjbates7

+1

chilladelia avatar Dec 13 '13 06:12 chilladelia

+1

JasonHuangHuster avatar Dec 16 '13 01:12 JasonHuangHuster

+1

NourSammour avatar Dec 17 '13 14:12 NourSammour

+1

If this is to be removed, then the regular .divider class should be removed too. It makes no sense to drop one and not the other, keep or drop the whole divider idea.

Personally I really find them useful - as mentioned above, they are used to great effect when resizing to xs views, where the dividers can be transformed into horizontal ones.

57u avatar Dec 18 '13 23:12 57u

+1

lcnvdl avatar Dec 26 '13 03:12 lcnvdl

So since there is such a demand, could you please reopen the ticket, or create a new one and post the link here, so you could at least reevaluate the decision, and then at least tell us why it was removed?

FreeApophis avatar Dec 27 '13 13:12 FreeApophis

If this is to be removed, then the regular .divider class should be removed too. It makes no sense to drop one and not the other, keep or drop the whole divider idea.

It did at the time, @57u, because we began adding our own "dividers" to the navbar content via borders on navbar sub-components and what not. And we cannot remove the dropdown divider now because that would break backward compatibility. Can't do that until v4.

So since there is such a demand, could you please reopen the ticket, or create a new one and post the link here, so you could at least reevaluate the decision, and then at least tell us why it was removed?

A handful of people isn't much demand to us. I don't mean to sound snarky or asshole-ish, so please hear me out. The reason for removing it was stated above already—a 1px line is not difficult to add yourself. Add borders wherever you need them.

Come v4, I can imagine us revisiting this to not do borders, but instead use dividers for more utility across viewport ranges, finer tuning of spacing, etc. Until then, it's not likely to be re-added.

mdo avatar Dec 27 '13 20:12 mdo

I was trying to find this and figured it wasn't in v3, as stated you should just style borders yourself and using a whole li element within a list doesn't make sense especially in terms of SEO, surely google knows to omit empty elements, but still a whole li element seems like overkill. This has changed my mind on how it should be now : )

ctsstc avatar Jan 01 '14 00:01 ctsstc

just DIY the old one xD eg. for navbar: .navbar .divider-vertical { height: 40px; margin: 0 9px; border-left: 1px solid #f2f2f2; border-right: 1px solid #ffffff; } now you have it back!

agalazis avatar Jan 18 '14 10:01 agalazis

Thats wrong, won't work. Try it and look at it when the menu collapsed...

@mdo, you made a breaking API change for no reason, and this thread shows there is demand, it might be small, but it is there, and it makes your product breaking others work. As a library you should have good reasons for breaking changes. But you don't even know the reason for the removal.

This is the kind of library I will avoid in the future, because you never can be sure that the next update breaks your whole design. And your reaction shows, I need to search an alternative soon, because bootstrap should avoid work, and not add to the designers work.

FreeApophis avatar Jan 18 '14 14:01 FreeApophis

You are absolutely right!(it doesn't offer what botstrap is supposed to offer but you can build on it using javascript or css workarounds ) I also agree that they shouldn't remove it because it makes things complicated.

agalazis avatar Jan 18 '14 18:01 agalazis