Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[Divider] - Vertical dividers broken on documentation site

Open nataliethistime opened this issue 10 years ago • 26 comments

The vertical dividers appear to just stick to the left side. See this fiddle and screenshot below.

sui bug

nataliethistime avatar Jul 27 '16 00:07 nataliethistime

I am getting the same problem on my web projects. I think this code is occuring the error:

.ui.grid > .column + .divider, .ui.grid > .row > .column + .divider {
    left: auto;
} 

I suppose if you disable this code sample, the error is going to be removed.

the code is in semantic-ui->dist->semantic.css line: 4679

ecehanece avatar Jul 27 '16 06:07 ecehanece

Happens since last update from Chrome. Firefox renders correct.

llturro avatar Jul 27 '16 07:07 llturro

Can confirm Chrome 51 looks fine and Chrome 52 looks bugged.

This seems like a chrome bug, as left: auto should be correct for positioning between flex items. Perhaps I should open a bug report with Chromium.

jlukic avatar Jul 27 '16 21:07 jlukic

@ecehanece @1vasari

I've posted a bug with Chromium. There does not appear to be a workaround from a framework level. Hopefully Chrome team can fix this soon.

View Chrome Issue 633011

https://github.com/w3c/csswg-drafts/issues/401

jlukic avatar Jul 31 '16 22:07 jlukic

A simple workaround if anyone is having problems: http://jsfiddle.net/xox5kt31/2/

Sarke avatar Oct 12 '16 13:10 Sarke

This worked for me:

.ui.grid>.column+.divider, .ui.grid>.row>.column+.divider {
    left: 50%;
}

source-creator avatar Oct 12 '16 15:10 source-creator

That only works if you have exactly 2 columns.

Sarke avatar Oct 13 '16 00:10 Sarke

Please note. This behaviour is correct to the spec and Edge works the same way. This will not be fixed by browsers.

indiealexh avatar Nov 11 '16 09:11 indiealexh

@indiealexh This is why the conversation is with spec makers at W3C CSSWG.

jlukic avatar Dec 27 '16 16:12 jlukic

I'm using Firefox developer edition (52.0a2, 64bit) on ubuntu and having the same problem with vertical divider

ciajulius avatar Jan 30 '17 07:01 ciajulius

Updated @Sarke's fiddle to use https when pulling the css in his solution (not sure how to propose changes to your fiddle): http://jsfiddle.net/allthesignals/xox5kt31/7/

allthesignals avatar Mar 11 '17 18:03 allthesignals

In older versions of Semantic this problem doesn't exist even with the latest Chrome versions. I think on version 2.2.2 it's rendered correctly

madela avatar Jun 01 '17 10:06 madela

This issue is still happening, and all the fixes currently seem to render this as a horizontal divider - not vertical.

samdoidge avatar Jun 01 '17 16:06 samdoidge

@samdoidge The fix I posted above works.

Sarke avatar Jun 01 '17 20:06 Sarke

@Sarke Apologies, it looks like it does. I was viewing in a smaller window where it defaults as a horizontal divider.

samdoidge avatar Jun 01 '17 21:06 samdoidge

Hey @jlukic

I appreciate all the work you've done with this framework. It's a joy to use and I'm sorry https://github.com/w3c/csswg-drafts/issues/401 rejected your proposal.

However, the behavior remains broken in the latest release and it's been so for almost 10 months now. Would it be possible to implement a workaround for the time being while the upstream bureaucracy plays out their drama?

amingilani avatar Jun 18 '17 22:06 amingilani

Any update on this issue? We're using Semantic UI on a project that's about to go live and still seeing this issue on all browsers except Safari

Bodacious avatar Jul 26 '17 17:07 Bodacious

The proposed fix is only for one divider, or two columns. The documentation page uses more. Looks like wrapping with relative position & padding/margin 0 solves it, like: <div style="position:relative; margin:0; padding:0;"><div class="ui vertical divider">Or</div></div>

But it would look way nicer if the final solution could be structured as: <div class="ui vertical"><span class="divider">Or</span></div> or similar.

bubach avatar Sep 03 '17 00:09 bubach

How about manually set style attr to the div, like:

<div class="ui vertical divider" style="left:50%"> Or</div>

qicai21 avatar Feb 10 '18 18:02 qicai21

There has been no activity in this thread for 90 days. While we care about every issue and we’d love to see this fixed, the core team’s time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one.

However, PRs for this issue will of course be accepted and welcome!

If there is no more activity in the next 90 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks!

stale[bot] avatar Jun 05 '18 16:06 stale[bot]